summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-06-18 16:28:38 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-06-18 16:28:38 +0700
commit5513e9994a084d8978e9ae914282b00286228abc (patch)
tree9b81454df530be8587a6e7cdf654e87e84712011 /crypto/src
parentRefactoring in Asn1.Cms (diff)
downloadBouncyCastle.NET-ed25519-5513e9994a084d8978e9ae914282b00286228abc.tar.xz
Fix tag for unprotectedAttrs field of Asn1.Cms.EncryptedData
- regression in 2.4.0
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/cms/EncryptedData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/cms/EncryptedData.cs b/crypto/src/asn1/cms/EncryptedData.cs
index fe0ff2c23..04ea382c7 100644
--- a/crypto/src/asn1/cms/EncryptedData.cs
+++ b/crypto/src/asn1/cms/EncryptedData.cs
@@ -43,7 +43,7 @@ namespace Org.BouncyCastle.Asn1.Cms
 
 			m_version = DerInteger.GetInstance(seq[pos++]);
 			m_encryptedContentInfo = EncryptedContentInfo.GetInstance(seq[pos++]);
-			m_unprotectedAttrs = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 0, false, Asn1Set.GetInstance);
+			m_unprotectedAttrs = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 1, false, Asn1Set.GetInstance);
 
             if (pos != count)
                 throw new ArgumentException("Unexpected elements in sequence", nameof(seq));