diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-19 14:55:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-19 14:55:27 +0700 |
commit | 931946b3426d1c13c30c09aef87102a129a4a04a (patch) | |
tree | 64686c44a0b5d22f50e39aec508e48d2e5c20f18 /crypto/src/openssl/PEMReader.cs | |
parent | Asn1.Tsp updates from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-931946b3426d1c13c30c09aef87102a129a4a04a.tar.xz |
Refactoring in Cms
Diffstat (limited to '')
-rw-r--r-- | crypto/src/openssl/PEMReader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openssl/PEMReader.cs b/crypto/src/openssl/PEMReader.cs index cb6950c47..b963ed56a 100644 --- a/crypto/src/openssl/PEMReader.cs +++ b/crypto/src/openssl/PEMReader.cs @@ -321,7 +321,7 @@ namespace Org.BouncyCastle.OpenSsl DerBitString pubKey = pKey.GetPublicKey(); if (pubKey != null) { - SubjectPublicKeyInfo pubInfo = new SubjectPublicKeyInfo(algId, pubKey.GetBytes()); + SubjectPublicKeyInfo pubInfo = new SubjectPublicKeyInfo(algId, pubKey); // TODO Are the keys returned here ECDSA, as Java version forces? pubSpec = PublicKeyFactory.CreateKey(pubInfo); |