Table of Contents

Class Dstu7564Digest

Namespace
Org.BouncyCastle.Crypto.Digests
Assembly
BouncyCastle.Cryptography.dll
public class Dstu7564Digest : IDigest, IMemoable
Inheritance
Dstu7564Digest
Implements
Inherited Members

Constructors

Dstu7564Digest(Dstu7564Digest)

public Dstu7564Digest(Dstu7564Digest digest)

Parameters

digest Dstu7564Digest

Dstu7564Digest(int)

public Dstu7564Digest(int hashSizeBits)

Parameters

hashSizeBits int

Properties

AlgorithmName

The algorithm name.

public virtual string AlgorithmName { get; }

Property Value

string

Methods

BlockUpdate(byte[], int, int)

Update the message digest with a block of bytes.

public virtual void BlockUpdate(byte[] input, int inOff, int length)

Parameters

input byte[]

The byte array containing the data.

inOff int

The offset into the byte array where the data starts.

length int

BlockUpdate(ReadOnlySpan<byte>)

Update the message digest with a span of bytes.

public virtual void BlockUpdate(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>

The span containing the data.

Copy()

Produce a copy of this object with its configuration and in its current state.

public virtual IMemoable Copy()

Returns

IMemoable

Remarks

The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state.

DoFinal(byte[], int)

Close the digest, producing the final digest value.

public virtual int DoFinal(byte[] output, int outOff)

Parameters

output byte[]

The byte array the digest is to be copied into.

outOff int

The offset into the byte array the digest is to start at.

Returns

int

The number of bytes written.

Remarks

This call leaves the digest reset.

DoFinal(Span<byte>)

Close the digest, producing the final digest value.

public virtual int DoFinal(Span<byte> output)

Parameters

output Span<byte>

The span the digest is to be copied into.

Returns

int

The number of bytes written.

Remarks

This call leaves the digest reset.

GetByteLength()

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

public virtual int GetByteLength()

Returns

int

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

GetDigestSize()

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

public virtual int GetDigestSize()

Returns

int

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

ProcessBlock(byte[], int)

protected virtual void ProcessBlock(byte[] input, int inOff)

Parameters

input byte[]
inOff int

ProcessBlock(ReadOnlySpan<byte>)

protected virtual void ProcessBlock(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>

Reset()

Reset the digest back to its initial state.

public virtual void Reset()

Reset(IMemoable)

Restore a copied object state into this object.

public virtual void Reset(IMemoable other)

Parameters

other IMemoable

an object originally {@link #copy() copied} from an object of the same type as this instance.

Remarks

Implementations of this method should try to avoid or minimise memory allocation to perform the reset.

Exceptions

InvalidCastException

if the provided object is not of the correct type.

MemoableResetException

if the other parameter is in some other way invalid.

Update(byte)

Update the message digest with a single byte.

public virtual void Update(byte input)

Parameters

input byte

The input byte to be entered.