summary refs log tree commit diff
path: root/crypto/src/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openssl')
-rw-r--r--crypto/src/openssl/PEMReader.cs4
1 files changed, 2 insertions, 2 deletions
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);