Direct byte buffer implementation for Hash

Includes implementations for SHA-256, SHA-512 and BLAKE2.