spu2_ccm_update_iv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spu2_ccm_update_iv(9) β€” a Kernel API Manual moment

okay so bestie, we're deep in the kernel crypto lore today. this one lives in the Kernel API Manual, and its whole personality is: update the IV as per the requirements for CCM mode. that's it, that's the vibe. short function, very demure, extremely important ✨


🌸 NAME

spu2_ccm_update_iv β€” update the IV as per the requirements for CCM mode. no cap, that's literally the whole job description πŸŽ€


✨ SYNOPSIS

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

she returns void, she takes six args, she's booked and busy 🫢


πŸ¦‹ ARGUMENTS

okay let's meet the cast, one by one, no skipping πŸ‘‘

  • digestsize β€” digest size of this request. that's her whole thing, that's the number she ate.
  • cipher_parms β€” a pointer to the cipher parmaeters (their spelling, not mine πŸ’€), and yes it includes the IV buf and the IV len. both. she's thorough.
  • assoclen β€” length of the AAD data. the associated data said "I'm coming too" and we respect it.
  • chunksize β€” length of input data to be sent in this req. this req specifically. not the other req. this one πŸ“
  • is_encrypt β€” true if this is an output/encrypt operation. two moods: encrypt or not-encrypt, pick your fighter.
  • is_esp β€” true if this is an ESP / RFC4309 operation. flag it and she'll handle it, iykyk 🌈

πŸ‘‘ SEE ALSO

bestie the friend group is LARGE and every single one of them is iconic, so here's the full call sheet β€” kernel file ./drivers/crypto/bcm/spu2.c plus the entire squad:

fr fr, go read them all, they're all serving πŸ”₯


🧚 tiny reminder: cipher_parms needs that IV buf and IV len in it, because that's where the whole "update the IV" plot actually happens. main character energy only.

and that's the page, bestie πŸ’– brought to you by ./drivers/crypto/bcm, dated October 2026 β€” see you in the next (9) bestie, mwah πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from