diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-07 12:36:21 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-07 12:36:21 +0700 |
commit | a23c80e6762b7016b4c29af81709388610b04fcc (patch) | |
tree | 0e7ad921fbff82349686025aec0a8dc8c6e7c655 /crypto/src/asn1 | |
parent | CHOICE cannot be implicitly tagged (diff) | |
download | BouncyCastle.NET-ed25519-a23c80e6762b7016b4c29af81709388610b04fcc.tar.xz |
Add direct PKMacValue constructor
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r-- | crypto/src/asn1/crmf/PopoPrivKey.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/PopoPrivKey.cs b/crypto/src/asn1/crmf/PopoPrivKey.cs index 95a4484de..e7cef784c 100644 --- a/crypto/src/asn1/crmf/PopoPrivKey.cs +++ b/crypto/src/asn1/crmf/PopoPrivKey.cs @@ -47,6 +47,12 @@ namespace Org.BouncyCastle.Asn1.Crmf return new PopoPrivKey(Asn1TaggedObject.GetInstance(tagged, true)); } + public PopoPrivKey(PKMacValue pkMacValue) + { + this.tagNo = agreeMAC; + this.obj = pkMacValue; + } + public PopoPrivKey(SubsequentMessage msg) { this.tagNo = subsequentMessage; |