Class RipeMD256Digest
- Namespace
- Org.BouncyCastle.Crypto.Digests
- Assembly
- BouncyCastle.Cryptography.dll
public class RipeMD256Digest : GeneralDigest, IDigest, IMemoable
- Inheritance
-
RipeMD256Digest
- Implements
- Inherited Members
Remarks
Implementation of RipeMD256.
Note: this algorithm offers the same level of security as RipeMD128.
Constructors
RipeMD256Digest()
Standard constructor
public RipeMD256Digest()
RipeMD256Digest(RipeMD256Digest)
Copy constructor. This will copy the state of the provided message digest.
public RipeMD256Digest(RipeMD256Digest t)
Parameters
Properties
AlgorithmName
The algorithm name.
public override string AlgorithmName { get; }
Property Value
Methods
Copy()
Produce a copy of this object with its configuration and in its current state.
public override IMemoable Copy()
Returns
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 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.
GetDigestSize()
Return the size, in bytes, of the digest produced by this message digest.
public override int GetDigestSize()
Returns
- int
The size, in bytes, of the digest produced by this message digest.
Reset()
reset the chaining variables to the IV values.
public override void Reset()
Reset(IMemoable)
Restore a copied object state into this object.
public override void Reset(IMemoable other)
Parameters
otherIMemoablean 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.