From fe161d043699655430af72f77d50c4924d764662 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 1 Jul 2024 16:58:53 +0700 Subject: Refactoring in Asn1.Sec --- crypto/src/openssl/PEMReader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/openssl/PEMReader.cs') diff --git a/crypto/src/openssl/PEMReader.cs b/crypto/src/openssl/PEMReader.cs index b963ed56a..bbe253f51 100644 --- a/crypto/src/openssl/PEMReader.cs +++ b/crypto/src/openssl/PEMReader.cs @@ -311,14 +311,14 @@ namespace Org.BouncyCastle.OpenSsl { ECPrivateKeyStructure pKey = ECPrivateKeyStructure.GetInstance(seq); AlgorithmIdentifier algId = new AlgorithmIdentifier( - X9ObjectIdentifiers.IdECPublicKey, pKey.GetParameters()); + X9ObjectIdentifiers.IdECPublicKey, pKey.Parameters); PrivateKeyInfo privInfo = new PrivateKeyInfo(algId, pKey.ToAsn1Object()); // TODO Are the keys returned here ECDSA, as Java version forces? privSpec = PrivateKeyFactory.CreateKey(privInfo); - DerBitString pubKey = pKey.GetPublicKey(); + DerBitString pubKey = pKey.PublicKey; if (pubKey != null) { SubjectPublicKeyInfo pubInfo = new SubjectPublicKeyInfo(algId, pubKey); -- cgit 1.4.1