Direct byte buffer implementation for Hash

Includes implementations for SHA-256, SHA-512 and BLAKE2.
Same thing here, I would like to leave this method as is until we review and change.