Table of Contents

Class OtherHash

Namespace
Org.BouncyCastle.Asn1.Esf
Assembly
BouncyCastle.Cryptography.dll
public class OtherHash : Asn1Encodable, IAsn1Convertible, IAsn1Choice
Inheritance
OtherHash
Implements
Inherited Members

Remarks

OtherHash ::= CHOICE {
	sha1Hash	OtherHashValue, -- This contains a SHA-1 hash
	otherHash	OtherHashAlgAndValue
}

OtherHashValue ::= OCTET STRING

Constructors

OtherHash(Asn1OctetString)

public OtherHash(Asn1OctetString sha1Hash)

Parameters

sha1Hash Asn1OctetString

OtherHash(OtherHashAlgAndValue)

public OtherHash(OtherHashAlgAndValue otherHash)

Parameters

otherHash OtherHashAlgAndValue

OtherHash(byte[])

public OtherHash(byte[] sha1Hash)

Parameters

sha1Hash byte[]

Properties

HashAlgorithm

public AlgorithmIdentifier HashAlgorithm { get; }

Property Value

AlgorithmIdentifier

Methods

GetHashValue()

public byte[] GetHashValue()

Returns

byte[]

GetInstance(Asn1TaggedObject, bool)

public static OtherHash GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)

Parameters

taggedObject Asn1TaggedObject
declaredExplicit bool

Returns

OtherHash

GetInstance(object)

public static OtherHash GetInstance(object obj)

Parameters

obj object

Returns

OtherHash

GetOptional(Asn1Encodable)

public static OtherHash GetOptional(Asn1Encodable element)

Parameters

element Asn1Encodable

Returns

OtherHash

GetTagged(Asn1TaggedObject, bool)

public static OtherHash GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)

Parameters

taggedObject Asn1TaggedObject
declaredExplicit bool

Returns

OtherHash

ToAsn1Object()

public override Asn1Object ToAsn1Object()

Returns

Asn1Object