Key

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

Functions

Link copied to clipboard
abstract fun cipher(padding: Boolean = true): Cipher

Returns a Cipher for encryption and decryption with PKCS#7 padding enabled or disabled.

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.