Table of Contents

Interface TlsHash

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

Interface for message digest, or hash, services.

public interface TlsHash

Methods

CalculateHash()

Return calculated hash for any input passed in.

byte[] CalculateHash()

Returns

byte[]

the hash value.

CloneHash()

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

TlsHash CloneHash()

Returns

TlsHash

a clone of the current hash.

Reset()

Reset the hash underlying this service.

void Reset()

Update(byte[], int, int)

Update the hash with the passed in input.

void Update(byte[] input, int inOff, int length)

Parameters

input byte[]

input array containing the data.

inOff int

offset into the input array the input starts at.

length int

the length of the input data.

Update(ReadOnlySpan<byte>)

void Update(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>