Key

An AES-CMAC key that provides MAC computation via signatureGenerator and verification via signatureVerifier.

Functions

Link copied to clipboard
open suspend fun encodeToByteArray(format: AES.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: AES.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.