std.digest.ripemd
- Computes RIPEMD-160 hashes of arbitrary data. RIPEMD-160 hashes are 20 byte quantities
- that are like a checksum or CRC, but are more robust. *
- This module conforms to the APIs defined in
std.digest. To understand the - differences between the template and the OOP API, see
std.digest. - This module publicly imports
std.digestand can be used as a stand-alone - module.
License
Types 2
structRIPEMD160
Template API RIPEMD160 implementation. See std.digest for differences between template and OOP API.
Fields
private uint[5] _stateprivate ulong _countprivate ubyte[64] _bufferprivate ubyte[64] _padding blockSizeMethods
private
void FF(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void GG(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void HH(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void II(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void JJ(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void FFF(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void GGG(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void HHH(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void III(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcprivate
void JJJ(ref uint a, uint b, ref uint c, uint d, uint e, uint x, uint s) static @safe pure nothrow @nogcvoid put(scope const(ubyte)[] data...) @trusted pure nothrow @nogcUse this to feed the digest with data. Also implements the isOutputRange interface for `ubyte` and `const(ubyte)[]`.ubyte[20] finish() @trusted pure nothrow @nogcReturns the finished RIPEMD160 hash. This also calls start to reset the internal state.OOP API RIPEMD160 implementation. See std.digest for differences between template and OOP API.
This is an alias for , see there for more information.WrapperDigest!RIPEMD160
Functions 1
fn
auto ripemd160Of(T...)(T data)This is a convenience alias for digest using the RIPEMD160 implementation.