Key

An HMAC key that provides MAC computation via signatureGenerator and verification via signatureVerifier.

Types

Link copied to clipboard

Encoding formats for HMAC keys.

Functions

Link copied to clipboard
open suspend fun encodeToByteArray(format: HMAC.Key.Format): ByteArray

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard
open suspend fun encodeToByteString(format: HMAC.Key.Format): ByteString

Encodes this material into a ByteString in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard

Returns a SignatureGenerator that computes message authentication codes.

Link copied to clipboard

Returns a SignatureVerifier that verifies message authentication codes.