Table of Contents

Class CombinedHash

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

A combined hash, which implements md5(m) || sha1(m).

public class CombinedHash : TlsHash
Inheritance
CombinedHash
Implements
Inherited Members

Constructors

CombinedHash(CombinedHash)

public CombinedHash(CombinedHash t)

Parameters

t CombinedHash

CombinedHash(TlsCrypto)

public CombinedHash(TlsCrypto crypto)

Parameters

crypto TlsCrypto

Fields

m_context

protected readonly TlsContext m_context

Field Value

TlsContext

m_crypto

protected readonly TlsCrypto m_crypto

Field Value

TlsCrypto

m_md5

protected readonly TlsHash m_md5

Field Value

TlsHash

m_sha1

protected readonly TlsHash m_sha1

Field Value

TlsHash

Methods

CalculateHash()

Return calculated hash for any input passed in.

public virtual byte[] CalculateHash()

Returns

byte[]

the hash value.

CloneHash()

Return a clone of this hash object representing its current state.

public virtual TlsHash CloneHash()

Returns

TlsHash

a clone of the current hash.

Reset()

Reset the hash underlying this service.

public virtual void Reset()

Update(byte[], int, int)

Update the hash with the passed in input.

public virtual void Update(byte[] input, int inOff, int len)

Parameters

input byte[]

input array containing the data.

inOff int

offset into the input array the input starts at.

len int

Update(ReadOnlySpan<byte>)

public void Update(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>