static fun authenticate(message: Bytes, key: Key): Bytes
(source)static fun authenticate(message: ByteArray, key: Key): ByteArray
(source)
Authenticates a message using a secret into a HMAC-SHA-512-256 authenticator.
message
- the message to authenticate
key
- the secret key to use for authentication
Return
the authenticator of the message