diff options
Diffstat (limited to 'crypto/src/asn1/esf/OtherHash.cs')
-rw-r--r-- | crypto/src/asn1/esf/OtherHash.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/esf/OtherHash.cs b/crypto/src/asn1/esf/OtherHash.cs index 0d8888234..58ef2ee9a 100644 --- a/crypto/src/asn1/esf/OtherHash.cs +++ b/crypto/src/asn1/esf/OtherHash.cs @@ -29,10 +29,11 @@ namespace Org.BouncyCastle.Asn1.Esf return new OtherHash(OtherHashAlgAndValue.GetInstance(obj)); } - public static OtherHash GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance); - } + public static OtherHash GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance); + + public static OtherHash GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance); private readonly Asn1OctetString m_sha1Hash; private readonly OtherHashAlgAndValue m_otherHash; |