summary refs log tree commit diff
path: root/crypto/src/asn1
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 12:36:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 12:36:21 +0700
commita23c80e6762b7016b4c29af81709388610b04fcc (patch)
tree0e7ad921fbff82349686025aec0a8dc8c6e7c655 /crypto/src/asn1
parentCHOICE cannot be implicitly tagged (diff)
downloadBouncyCastle.NET-ed25519-a23c80e6762b7016b4c29af81709388610b04fcc.tar.xz
Add direct PKMacValue constructor
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r--crypto/src/asn1/crmf/PopoPrivKey.cs6
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;