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/src/openssl/PEMReader.cs | |
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/src/openssl/PEMReader.cs')
-rw-r--r-- | crypto/src/openssl/PEMReader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openssl/PEMReader.cs b/crypto/src/openssl/PEMReader.cs index 9d3560838..8c19fe601 100644 --- a/crypto/src/openssl/PEMReader.cs +++ b/crypto/src/openssl/PEMReader.cs @@ -276,7 +276,7 @@ namespace Org.BouncyCastle.OpenSsl if (seq.Count != 9) throw new PemException("malformed sequence in RSA private key"); - RsaPrivateKeyStructure rsa = new RsaPrivateKeyStructure(seq); + RsaPrivateKeyStructure rsa = RsaPrivateKeyStructure.GetInstance(seq); pubSpec = new RsaKeyParameters(false, rsa.Modulus, rsa.PublicExponent); privSpec = new RsaPrivateCrtKeyParameters( |