RIPEMD160.finish

Returns the finished RIPEMD160 hash. This also calls start to reset the internal state.

struct RIPEMD160
@trusted pure nothrow @nogc
ubyte[20]
finish
()

Examples

//Simple example
RIPEMD160 hash;
hash.start();
hash.put(cast(ubyte) 0);
ubyte[20] result = hash.finish();
assert(toHexString(result) == "C81B94933420221A7AC004A90242D8B1D3E5070D");

Meta