From 438dc8d53aac9b7483a2014cd4398b8275c496ab Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 24 Jun 2024 20:04:26 +0700 Subject: ASN.1: Use GetTagged with cursor methods - Add GetTagged method for all CHOICE types - Make most Asn1Utilities methods public --- crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs') diff --git a/crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs b/crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs index c1255adc9..8173005a9 100644 --- a/crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs +++ b/crypto/src/asn1/cms/KeyAgreeRecipientInfo.cs @@ -49,8 +49,8 @@ namespace Org.BouncyCastle.Asn1.Cms throw new ArgumentException("Bad sequence size: " + count, nameof(seq)); m_version = DerInteger.GetInstance(seq[pos++]); - m_originator = Asn1Utilities.ReadContextTagged(seq, ref pos, 0, true, OriginatorIdentifierOrKey.GetInstance); - m_ukm = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 1, true, Asn1OctetString.GetInstance); + m_originator = Asn1Utilities.ReadContextTagged(seq, ref pos, 0, true, OriginatorIdentifierOrKey.GetTagged); + m_ukm = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 1, true, Asn1OctetString.GetTagged); m_keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq[pos++]); m_recipientEncryptedKeys = Asn1Sequence.GetInstance(seq[pos++]); -- cgit 1.4.1