summary refs log tree commit diff
path: root/crypto/src/asn1/cms
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-02-23 19:32:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-02-23 19:32:21 +0700
commit0328a9c2006b894d70c943a1c59dd366bec7e07a (patch)
tree976548f70aac81dfb5810bffe651d85dcfc3528e /crypto/src/asn1/cms
parentPort of WNaf precomp optimization from Java (diff)
downloadBouncyCastle.NET-ed25519-0328a9c2006b894d70c943a1c59dd366bec7e07a.tar.xz
Fix parsing of implicit tagged object
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/cms/EncryptedData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/cms/EncryptedData.cs b/crypto/src/asn1/cms/EncryptedData.cs
index 5b8378282..cb109a640 100644
--- a/crypto/src/asn1/cms/EncryptedData.cs
+++ b/crypto/src/asn1/cms/EncryptedData.cs
@@ -52,8 +52,8 @@ namespace Org.BouncyCastle.Asn1.Cms
 
 			if (seq.Count > 2)
 			{
-				this.unprotectedAttrs = Asn1Set.GetInstance(seq[2]);
-			}
+                this.unprotectedAttrs = Asn1Set.GetInstance((Asn1TaggedObject)seq[2], false);
+            }
 		}
 
 		public virtual DerInteger Version