CFB

AES in Cipher Feedback (CFB) mode with full-block feedback, a stream cipher as defined in NIST SP 800-38A.

Turns AES into a self-synchronizing stream cipher using full-block (128-bit) feedback. Uses a 128-bit (16-byte) IV by default. Does not provide authentication — use GCM when integrity is required.

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

Types

Link copied to clipboard
Link copied to clipboard

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

Properties

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

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.CFB.Key>

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