diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-26 10:49:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-26 10:49:35 +0700 |
commit | de06767b384cd5056a540b196337a23d7b125fd3 (patch) | |
tree | 3c344c0cd1f87eee1c8b781909776eea363af087 /crypto/test | |
parent | Rework the nonce-random initialisation and avoid GenerateSeed (diff) | |
download | BouncyCastle.NET-ed25519-de06767b384cd5056a540b196337a23d7b125fd3.tar.xz |
Cleanup obsolete code warnings
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/crypto/test/OAEPTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/test/src/crypto/test/OAEPTest.cs b/crypto/test/src/crypto/test/OAEPTest.cs index b4c375eec..ee48a183d 100644 --- a/crypto/test/src/crypto/test/OAEPTest.cs +++ b/crypto/test/src/crypto/test/OAEPTest.cs @@ -315,8 +315,8 @@ namespace Org.BouncyCastle.Crypto.Tests // extract the private key info. // Asn1Object privKeyObj = Asn1Object.FromByteArray(privKeyEnc); - RsaPrivateKeyStructure privStruct = new RsaPrivateKeyStructure( - (Asn1Sequence)PrivateKeyInfo.GetInstance(privKeyObj).ParsePrivateKey()); + RsaPrivateKeyStructure privStruct = RsaPrivateKeyStructure.GetInstance( + PrivateKeyInfo.GetInstance(privKeyObj).ParsePrivateKey()); RsaKeyParameters pubParameters = new RsaKeyParameters( false, |