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