SHA.finish

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

struct SHA(int blockSize, int digestSize)
@trusted nothrow pure
ubyte[digestSize / 8]
finish
()

Examples

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

Meta