SINGLE BLOCK CIPHER API(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ✨


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