summary refs log tree commit diff
path: root/crypto/src/asn1/cmp/DhbmParameter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cmp/DhbmParameter.cs')
-rw-r--r--crypto/src/asn1/cmp/DhbmParameter.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/cmp/DhbmParameter.cs b/crypto/src/asn1/cmp/DhbmParameter.cs
index 12b8d91d3..1b44b732e 100644
--- a/crypto/src/asn1/cmp/DhbmParameter.cs
+++ b/crypto/src/asn1/cmp/DhbmParameter.cs
@@ -26,7 +26,7 @@ namespace Org.BouncyCastle.Asn1.Cmp
 
         public static DhbmParameter GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
         {
-            return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
+            return new DhbmParameter(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
         }
 
         private readonly AlgorithmIdentifier m_owf;
@@ -51,9 +51,6 @@ namespace Org.BouncyCastle.Asn1.Cmp
 
         public virtual AlgorithmIdentifier Mac => m_mac;
 
-        public override Asn1Object ToAsn1Object()
-        {
-            return new DerSequence(m_owf, m_mac);
-        }
+        public override Asn1Object ToAsn1Object() => new DerSequence(m_owf, m_mac);
     }
 }