From bbfa024697bd0ec381fc1a0507bd0dedc6696f63 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 4 Aug 2019 14:59:54 +0700 Subject: Refactoring in PublicKeyFactory - add SubjectPublicKeyInfo.ParsePublicKey and use where applicable - validate GOST3410 public key lengths --- crypto/test/src/crypto/test/OAEPTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/test/src') 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. -- cgit 1.4.1