Key

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

Functions

Link copied to clipboard
abstract fun cipher(): IvCipher

Returns an IvCipher for encryption and decryption.

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.