CFB8

AES in Cipher Feedback (CFB8) mode with 8-bit feedback as defined in NIST SP 800-38A.

Variant of CFB that uses 8-bit (1-byte) feedback segments instead of full blocks. Uses a 128-bit (16-byte) IV by default. Does not provide authentication — use GCM when integrity is required.

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

Types

Link copied to clipboard
Link copied to clipboard

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

Properties

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

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

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