Direct byte buffer implementation for Hash

Includes implementations for SHA-256, SHA-512 and BLAKE2.
I would like to leave this method as is until we review, if you don't mind.