Class Haraka256Digest
- Namespace
- Org.BouncyCastle.Crypto.Digests
- Assembly
- BouncyCastle.Cryptography.dll
public sealed class Haraka256Digest : HarakaBase, IDigest
- Inheritance
-
Haraka256Digest
- Implements
- Inherited Members
Constructors
Haraka256Digest()
public Haraka256Digest()
Properties
AlgorithmName
The algorithm name.
public override string AlgorithmName { get; }
Property Value
Methods
BlockUpdate(byte[], int, int)
Update the message digest with a block of bytes.
public override void BlockUpdate(byte[] input, int inOff, int len)
Parameters
inputbyte[]The byte array containing the data.
inOffintThe offset into the byte array where the data starts.
lenint
BlockUpdate(ReadOnlySpan<byte>)
Update the message digest with a span of bytes.
public override void BlockUpdate(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>The span containing the data.
DoFinal(byte[], int)
Close the digest, producing the final digest value.
public override int DoFinal(byte[] output, int outOff)
Parameters
outputbyte[]The byte array the digest is to be copied into.
outOffintThe 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 override int DoFinal(Span<byte> output)
Parameters
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 override int GetByteLength()
Returns
- int
The size, in bytes, of the internal buffer used by this digest.
Reset()
Reset the digest back to its initial state.
public override void Reset()
Update(byte)
Update the message digest with a single byte.
public override void Update(byte input)
Parameters
inputbyteThe input byte to be entered.