spu2_aead_ivlen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spu2_aead_ivlen ✨

okay bestie, gather round because we're about to talk about spu2_aead_ivlen β€” a kernel function from the spu2 world (that's the SPU2 driver, lowkey iconic) that's literally just here to do one thing: calculate the length of the AEAD IV that gets included in a SPU request, positioned right after the AAD and before the payload. that's it. that's the whole vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

u8 spu2_aead_ivlen (enum spu_cipher_mode cipher_mode , u16 iv_len );

🌸 ARGUMENTS 🌸

  • cipher_mode β€” the cipher mode, bestie. it's giving "which cipher are we using today" energy. πŸ”
  • iv_len β€” the initialization vector length, measured in bytes. that's the IV length fr fr, no cap. πŸ“

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” for SPU2, the AEAD IV is already included in OMD, which means it does not need to be repeated prior to the payload. so like, no need to double up, the IV's already chilling in OMD where it belongs. main character energy, honestly. ✨


πŸ”₯ RETURN πŸ”₯

returns the length of the AEAD IV in bytes. that's it. that's the return value. a whole u8's worth of "here's how long your IV is." slay. πŸ’…

ngl bestie, if you were expecting something more dramatic β€” this function is a quick lil helper and it knows it.

πŸ‘‘ SEE ALSO πŸ‘‘

if you're obsessed with the SPU2 cipher/hash/fmd universe (and honestly, who isn't), go check out the kernel file ./drivers/crypto/bcm/spu2.c and all these other functions that are literally in the same friend group:

like a whole squad of SPU2 functions, all referenced from the kernel file ./drivers/crypto/bcm/spu2.c. iykyk 🫢


big hugs from your favorite kernel bestie 🫢 β€” this page came straight out of ./drivers/crypto/bcm and is dated October 2026, so you know it's fresh. periodt. πŸ’œ

πŸ“¦ where this page comes from