SHA.finish

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

struct SHA(uint hashBlockSize, uint digestSize)
@trusted pure nothrow @nogc
ubyte[digestSize / 8]
finish
()

Examples

//Simple example
SHA1 hash;
hash.start();
hash.put(cast(ubyte) 0);
ubyte[20] result = hash.finish();

Meta