summary refs log tree commit diff
path: root/crypto/src/asn1/tsp/PartialHashtree.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 19:23:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 19:23:46 +0700
commit4e97fa1cbee0072938c5ea33ca51f4e3964f2998 (patch)
tree0aad9c9bc277429ee733c8383672cb7c6aed329a /crypto/src/asn1/tsp/PartialHashtree.cs
parentRefactoring in Asn1.Smime (diff)
downloadBouncyCastle.NET-ed25519-4e97fa1cbee0072938c5ea33ca51f4e3964f2998.tar.xz
Refactoring in Asn1.Tsp
Diffstat (limited to 'crypto/src/asn1/tsp/PartialHashtree.cs')
-rw-r--r--crypto/src/asn1/tsp/PartialHashtree.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/tsp/PartialHashtree.cs b/crypto/src/asn1/tsp/PartialHashtree.cs
index dea7c9e37..cfc8b18bd 100644
--- a/crypto/src/asn1/tsp/PartialHashtree.cs
+++ b/crypto/src/asn1/tsp/PartialHashtree.cs
@@ -31,10 +31,11 @@ namespace Org.BouncyCastle.Asn1.Tsp
             return new PartialHashtree(Asn1Sequence.GetInstance(obj));
         }
 
-        public static PartialHashtree GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
-        {
-            return new PartialHashtree(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
-        }
+        public static PartialHashtree GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            new PartialHashtree(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
+
+        public static PartialHashtree GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            new PartialHashtree(Asn1Sequence.GetTagged(taggedObject, declaredExplicit));
 
         /**
          * Hash values that constitute the hash tree, as ASN.1 Octet Strings.