class HMACSHA256
(source)
Message authentication code support for HMAC-SHA-256.
class Key : Destroyable
A HMACSHA256 secret key. |
static fun authenticate(message: Bytes, key: Key): Bytes static fun authenticate(message: ByteArray, key: Key): ByteArray
Authenticates a message using a secret into a HMAC-SHA-256 authenticator. |
|
static fun verify(authenticator: Bytes, in: Bytes, key: Key): Boolean static fun verify(authenticator: ByteArray, in: ByteArray, key: Key): Boolean
Verifies the authenticator of a message matches according to a secret. |