Key

An AES-GCM key that provides authenticated encryption and decryption via cipher.

Functions

Link copied to clipboard
abstract fun cipher(tagSize: BinarySize = 128.bits): IvAuthenticatedCipher

Returns an IvAuthenticatedCipher for encryption and decryption with an authentication tag of the given tagSize.

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.