<PackageReference Include="BouncyCastle.Cryptography" Version="2.2.0" />

IDigest

public interface IDigest
string AlgorithmName { get; }

The algorithm name.

void BlockUpdate(byte[] input, int inOff, int inLen)

Update the message digest with a block of bytes.

void BlockUpdate(ReadOnlySpan<byte> input)

Update the message digest with a span of bytes.

int DoFinal(byte[] output, int outOff)

Close the digest, producing the final digest value.

int DoFinal(Span<byte> output)

Close the digest, producing the final digest value.

Return the size, in bytes, of the internal buffer used by this digest.

Return the size, in bytes, of the digest produced by this message digest.

void Reset()

Reset the digest back to its initial state.

void Update(byte input)

Update the message digest with a single byte.