summary refs log tree commit diff
path: root/crypto/src/asn1/cms/CcmParameters.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cms/CcmParameters.cs')
-rw-r--r--crypto/src/asn1/cms/CcmParameters.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/asn1/cms/CcmParameters.cs b/crypto/src/asn1/cms/CcmParameters.cs
index c9588adca..bd725721b 100644
--- a/crypto/src/asn1/cms/CcmParameters.cs
+++ b/crypto/src/asn1/cms/CcmParameters.cs
@@ -9,9 +9,6 @@ namespace Org.BouncyCastle.Asn1.Cms
     {
         private const int DefaultIcvLen = 12;
 
-        private readonly byte[] m_nonce;
-        private readonly int m_icvLen;
-
         public static CcmParameters GetInstance(object obj)
         {
             if (obj == null)
@@ -23,9 +20,12 @@ namespace Org.BouncyCastle.Asn1.Cms
 
         public static CcmParameters GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
         {
-            return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
+            return new CcmParameters(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
         }
 
+        private readonly byte[] m_nonce;
+        private readonly int m_icvLen;
+
         private CcmParameters(Asn1Sequence seq)
         {
             int count = seq.Count;