Link Search Menu Expand Document

6.3 Hash Function


Functions

Hash(data []byte) (sum []byte)

Compute a 64-byte SHA-512 hash of the message.

Note: you should use HMACEqual to determine hash equality, as it is designed to run in a constant-time manner.

Parameters
data ([]byte) - arbitrary-length data to hash

Returns
sum ([]byte) - a 64-byte hash of the message