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/PublicKeyFactory.cs | |
parent | Refactoring in Asn1.Nist (diff) | |
download | BouncyCastle.NET-ed25519-70b47a3c76303a3af17c9ed635f7f1fa8a78ad18.tar.xz |
Refactoring in Asn1.Oiw
Diffstat (limited to 'crypto/src/security/PublicKeyFactory.cs')
-rw-r--r-- | crypto/src/security/PublicKeyFactory.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/security/PublicKeyFactory.cs b/crypto/src/security/PublicKeyFactory.cs index 234847870..933af4841 100644 --- a/crypto/src/security/PublicKeyFactory.cs +++ b/crypto/src/security/PublicKeyFactory.cs @@ -102,8 +102,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 derY = (DerInteger)keyInfo.ParsePublicKey(); return new ElGamalPublicKeyParameters( |