tuweni / org.apache.tuweni.crypto.sodium / HMACSHA512 / authenticate

authenticate

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 authenticator.

Parameters

message - the message to authenticate

key - the secret key to use for authentication

Return
the authenticator of the message