diff options
author | David Hook <dgh@cryptoworkshop.com> | 2020-04-25 13:11:33 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2020-04-25 13:11:33 +1000 |
commit | fac7ac9bfe82e7c4eedf5a7b26bed58e49fa988b (patch) | |
tree | 229da03984ecbf55afbd25707ccee29e2523557b /crypto/src/asn1/pkcs | |
parent | fixed typo (diff) | |
download | BouncyCastle.NET-ed25519-fac7ac9bfe82e7c4eedf5a7b26bed58e49fa988b.tar.xz |
github #237 - gost 2012 parsing
Diffstat (limited to 'crypto/src/asn1/pkcs')
-rw-r--r-- | crypto/src/asn1/pkcs/PrivateKeyInfo.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/pkcs/PrivateKeyInfo.cs b/crypto/src/asn1/pkcs/PrivateKeyInfo.cs index ba9ef6a53..c5c7c3a2f 100644 --- a/crypto/src/asn1/pkcs/PrivateKeyInfo.cs +++ b/crypto/src/asn1/pkcs/PrivateKeyInfo.cs @@ -167,6 +167,11 @@ namespace Org.BouncyCastle.Asn1.Pkcs get { return privateKeyAlgorithm; } } + public virtual Asn1OctetString PrivateKeyData + { + get { return privateKey; } + } + public virtual Asn1Object ParsePrivateKey() { return Asn1Object.FromByteArray(privateKey.GetOctets()); |