diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-04 14:59:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-04 14:59:54 +0700 |
commit | bbfa024697bd0ec381fc1a0507bd0dedc6696f63 (patch) | |
tree | b8a60695d573c661642f7e3d6636331408ce2f18 /crypto/test | |
parent | Improve caching behaviour for algorithms using endomorphisms (diff) | |
download | BouncyCastle.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.cs | 2 |
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. |