spum_ccm_update_iv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spum_ccm_update_iv ✨ (section 9, Kernel API Manual, bestie)

Okay so picture this: you're deep in the kernel, you're doing CCM mode, and the IV needs a little glow-up. That's literally this function. spum_ccm_update_iv β€” Update the IV as per the requirements for CCM mode. That's the whole vibe. No cap. πŸ’…


🌸 SYNOPSIS 🌸

void spum_ccm_update_iv (unsigned int digestsize , struct
spu_cipher_parms *cipher_parms , unsigned int assoclen , unsigned int
chunksize , bool is_encrypt , bool is_esp );

It returns void, so don't go looking for a return value, she gives you nothing and she's iconic for it. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

Six args, all of them main character energy:

  • digestsize β€” the digest size of this request. That's it, that's the whole lore.
  • cipher_parms β€” a pointer to the cipher parameters, and yes bestie this is the important one: it includes the IV buf and the IV len. The IV lives here. Be normal about it.
  • assoclen β€” length of the AAD data. (Additional Authenticated Data, iykyk.)
  • chunksize β€” length of the input data that's getting sent in this req. Just this req. Don't overthink it. 🫢
  • is_encrypt β€” true if this is an output/encrypt operation. So flip it and it's not, you get it.
  • is_esp β€” true if this is an ESP / RFC4309 operation. ✨ Very demure, very RFC4309.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/crypto/bcm/spu.c β€” go read her, she's the source of truth, and also literally all of her friends:

That's the whole group chat. Go say hi. πŸ’–


Lowkey a reminder: those all end in (9) because they're kernel API manual pages, so if you're searching for them, use man 9 <name>. 🧚

And that's the page!! 🌈 Coming at you from ./drivers/crypto/bcm, dated October 2026, and yes the page is still called spum_ccm_update_iv(9) β€” she's booked and busy. Mwah. πŸ’œπŸ“

πŸ“¦ where this page comes from