the secret key (recommended length: 64-128 bytes)
the message to authenticate
an implementation of Sha512
Returns the sha512 hash of the provided input.
To incrementally construct a sha512 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha512
Generated using TypeDoc
Create a hash-based message authentication code using HMAC-SHA512 as specified in
RFC 4231
. Returns a 64-byte Uint8Array.Secrets longer than the block byte-length (128 bytes) are hashed before use, shortening their length to the minimum recommended length (64 bytes). See
RFC 2104
for details.