spum_aead_ivlen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spum_aead_ivlen(9) β€” like, the Kernel API Manual era πŸŽ€

okay so bestie, welcome to spum_aead_ivlen, a little function from the Kernel API Manual and honestly? she's lowkey doing the math so you don't have to. no cap. 🧚


✨ NAME ✨

spum_aead_ivlen β€” calculates the length of the AEAD IV that goes into a SPU request, right after the AAD and before the payload. that's it, that's the whole vibe check. πŸ’–


✨ SYNOPSIS ✨

u8 spum_aead_ivlen (enum spu_cipher_mode cipher_mode , u16 iv_len );

copy it exactly like that, bestie, don't get creative with the spacing fr fr 🫢


✨ ARGUMENTS ✨

  • cipher_mode β€” the cipher mode. yep. that's the whole description. iconic minimalism honestly πŸ’…
  • iv_len β€” the initialization vector length in bytes. give her a number, she'll do something with it ✨

✨ DESCRIPTION ✨

so here's the tea β˜• β€” in Linux ~4.2 and later, the assoc_data sg includes the IV. meaning: there's literally no need to include the IV as its own separate field in the SPU request msg. she ate and left no crumbs. πŸ“

like, the IV is already in there. she's already at the party. no need to send a second invite. πŸŽ€


✨ RETURN ✨

the length of the AEAD IV, in bytes. slay. πŸ‘‘


✨ SEE ALSO ✨

go look at the kernel file ./drivers/crypto/bcm/spu.c β€” she's the main character, everything else is the supporting cast 🌈:

a whole friend group, honestly. iykyk πŸ¦‹


ok that's the whole page, bestie! sources say ./drivers/crypto/bcm, and she was stamped October 2026 β€” so like, future icon behavior tbh β­πŸ’œ no cap, go read the other spum_* pages too, they're all in the same group chat πŸ’€βœ¨
πŸ“¦ where this page comes from