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

1 {
2           //Simple example
3           SHA1 hash;
4           hash.start();
5           hash.put(cast(ubyte)0);
6           ubyte[20] result = hash.finish();

Meta