summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-08-26 10:49:35 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-08-26 10:49:35 +0700
commitde06767b384cd5056a540b196337a23d7b125fd3 (patch)
tree3c344c0cd1f87eee1c8b781909776eea363af087 /crypto/test
parentRework the nonce-random initialisation and avoid GenerateSeed (diff)
downloadBouncyCastle.NET-ed25519-de06767b384cd5056a540b196337a23d7b125fd3.tar.xz
Cleanup obsolete code warnings
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/crypto/test/OAEPTest.cs4
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,