diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-04 23:44:11 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-04 23:44:11 +0700 |
commit | cea0366cdf7450e96b663a2ee18ad37c2fdeb5cc (patch) | |
tree | 4226642a7547dc373400e385b04a3d2e6f12eed6 /crypto/src/asn1/crmf/EncryptedKey.cs | |
parent | ASN.1: Add support methods for optional elements (diff) | |
download | BouncyCastle.NET-ed25519-cea0366cdf7450e96b663a2ee18ad37c2fdeb5cc.tar.xz |
Refactoring in Asn1.Crmf
Diffstat (limited to 'crypto/src/asn1/crmf/EncryptedKey.cs')
-rw-r--r-- | crypto/src/asn1/crmf/EncryptedKey.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/EncryptedKey.cs b/crypto/src/asn1/crmf/EncryptedKey.cs index d4ff250c5..62c475f5d 100644 --- a/crypto/src/asn1/crmf/EncryptedKey.cs +++ b/crypto/src/asn1/crmf/EncryptedKey.cs @@ -16,6 +16,11 @@ namespace Org.BouncyCastle.Asn1.Crmf return new EncryptedKey(EncryptedValue.GetInstance(obj)); } + public static EncryptedKey GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) + { + return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance); + } + private readonly EnvelopedData m_envelopedData; private readonly EncryptedValue m_encryptedValue; |