crypto_cipher_blocksize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ crypto_cipher_blocksize β€” like, how big is one block, bestie? ✨

okay so this is a page straight out of the Kernel API Manual (crypto_cipher_blocksize(9), section 9) and honestly it's a short one but it's iconic for what it does πŸ’…

🌸 SYNOPSIS 🌸

unsigned int crypto_cipher_blocksize (struct crypto_cipher *tfm );

that's the whole vibe. one function, one handle, one answer πŸŽ€

πŸ¦‹ ARGUMENTS πŸ¦‹

  • tfm β€” your cipher handle, aka the main character of this whole operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so basically: you hand over the cipher handle tfm, and the function returns the block size for the single block cipher that handle references. that's it. that's the tea β˜•

and why do you care? because the caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation. like, you literally need to know how big the block is so you can make room for it β€” no cap, that's the whole point 🫢

⭐ RETURN ⭐

the block size of the cipher ✨ (an unsigned int, harmlessly sitting there being useful)

πŸ”₯ SEE ALSO πŸ”₯

like, the whole cipher squad, ily all πŸ’œ


and that's the page!! sign-off time 🧚 source: ./include/crypto/internal β€” dated October 2026 β€” filed under crypto_cipher_blocksize(9). slay, go read the other cipher manpages, mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from