summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-04 14:59:54 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-04 14:59:54 +0700
commitbbfa024697bd0ec381fc1a0507bd0dedc6696f63 (patch)
treeb8a60695d573c661642f7e3d6636331408ce2f18 /crypto/test
parentImprove caching behaviour for algorithms using endomorphisms (diff)
downloadBouncyCastle.NET-ed25519-bbfa024697bd0ec381fc1a0507bd0dedc6696f63.tar.xz
Refactoring in PublicKeyFactory
- add SubjectPublicKeyInfo.ParsePublicKey and use where applicable
- validate GOST3410 public key lengths
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/crypto/test/OAEPTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/test/src/crypto/test/OAEPTest.cs b/crypto/test/src/crypto/test/OAEPTest.cs
index 204784cee..0d4374db1 100644
--- a/crypto/test/src/crypto/test/OAEPTest.cs
+++ b/crypto/test/src/crypto/test/OAEPTest.cs
@@ -310,7 +310,7 @@ namespace Org.BouncyCastle.Crypto.Tests
             //
             Asn1Object pubKeyObj = Asn1Object.FromByteArray(pubKeyEnc);
             RsaPublicKeyStructure pubStruct = RsaPublicKeyStructure.GetInstance(
-                SubjectPublicKeyInfo.GetInstance(pubKeyObj).GetPublicKey());
+                SubjectPublicKeyInfo.GetInstance(pubKeyObj).ParsePublicKey());
 
             //
             // extract the private key info.