diff options
Diffstat (limited to 'crypto/src/security/PublicKeyFactory.cs')
-rw-r--r-- | crypto/src/security/PublicKeyFactory.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/security/PublicKeyFactory.cs b/crypto/src/security/PublicKeyFactory.cs index dd34b84ff..234847870 100644 --- a/crypto/src/security/PublicKeyFactory.cs +++ b/crypto/src/security/PublicKeyFactory.cs @@ -317,7 +317,7 @@ namespace Org.BouncyCastle.Security private static DHPublicKeyParameters ReadPkcsDHParam(DerObjectIdentifier algOid, BigInteger y, Asn1Sequence seq) { - DHParameter para = new DHParameter(seq); + DHParameter para = DHParameter.GetInstance(seq); BigInteger lVal = para.L; int l = lVal == null ? 0 : lVal.IntValue; |