Hardware implementation of the blake2 hash function