diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 16:15:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 16:15:42 +0700 |
commit | 70b47a3c76303a3af17c9ed635f7f1fa8a78ad18 (patch) | |
tree | a447b19f4ca05e728ea48bc24d5b369f01ab75ca /crypto/src/security/PrivateKeyFactory.cs | |
parent | Refactoring in Asn1.Nist (diff) | |
download | BouncyCastle.NET-ed25519-70b47a3c76303a3af17c9ed635f7f1fa8a78ad18.tar.xz |
Refactoring in Asn1.Oiw
Diffstat (limited to 'crypto/src/security/PrivateKeyFactory.cs')
-rw-r--r-- | crypto/src/security/PrivateKeyFactory.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/security/PrivateKeyFactory.cs b/crypto/src/security/PrivateKeyFactory.cs index cf47eb272..670cebd7f 100644 --- a/crypto/src/security/PrivateKeyFactory.cs +++ b/crypto/src/security/PrivateKeyFactory.cs @@ -78,8 +78,7 @@ namespace Org.BouncyCastle.Security } else if (algOid.Equals(OiwObjectIdentifiers.ElGamalAlgorithm)) { - ElGamalParameter para = new ElGamalParameter( - Asn1Sequence.GetInstance(algID.Parameters.ToAsn1Object())); + ElGamalParameter para = ElGamalParameter.GetInstance(algID.Parameters); DerInteger derX = (DerInteger)keyInfo.ParsePrivateKey(); return new ElGamalPrivateKeyParameters( |