OFB

AES in Output Feedback (OFB) mode, a stream cipher as defined in NIST SP 800-38A.

Turns AES into a stream cipher by repeatedly encrypting the previous output block. Uses a 128-bit (16-byte) IV by default. Does not provide authentication — use GCM when integrity is required.

val key = provider.get(AES.OFB).keyGenerator().generateKey()
val ciphertext = key.cipher().encrypt(plaintext)

Types

Link copied to clipboard
Link copied to clipboard

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

Properties

Link copied to clipboard
open override val id: CryptographyAlgorithmId<AES.OFB>

The typed identifier that uniquely distinguishes this algorithm and is used to look it up from a CryptographyProvider.

Functions

Link copied to clipboard

Returns a Decoder that decodes AES keys from the specified Key.Format.

Link copied to clipboard
abstract fun keyGenerator(keySize: BinarySize = Key.Size.B256): KeyGenerator<AES.OFB.Key>

Returns a KeyGenerator that generates AES keys of the given keySize.