SINGLE BLOCK CIPHER API(9)
π SINGLE BLOCK CIPHER API π
okay bestie, welcome to the Single Block Cipher API β straight out of your fave Kernel API Manual β¨ this one's short but she's iconic, so pay attention π«Ά
πΈ the vibe check (aka DESCRIPTION)
so the single block cipher API is literally what you use with the ciphers of type CRYPTO_ALG_TYPE_CIPHER β you'll see them listed as type "cipher" in /proc/crypto if you go peek π (go peek, it's giving main character energy).
using the single block cipher API calls, you can implement operations with the basic cipher primitive π and bestie, note this: these cipher primitives exclude any block chaining operations β including IV handling. no chaining, no IVs, not here, not today π«β¨
the whole purpose of this API is to support the implementation of templates or other concepts that only need to perform the cipher operation on one block at a time. templates invoke the underlying cipher primitive block-wise and then process either the input or the output data of those cipher operations π₯ one block, in and out, that's the whole gig, periodt.
no cap β if you came here looking for chaining or IV handling, this is not the function you're looking for, go find her elsewhere π
β¨ SEE ALSO β¨
- Kernel file
./include/crypto/internal/cipher.h crypto_alloc_cipher(9)crypto_free_cipher(9)crypto_has_cipher(9)crypto_cipher_blocksize(9)crypto_cipher_setkey(9)crypto_cipher_encrypt_one(9)crypto_cipher_decrypt_one(9)
and that's the whole page, bestie π she lives in ./include/crypto/internal and she's stamped October 2026 β go read the SEE ALSO girls, they're all linked and they all ate ππ¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms