spu2_gcm_ccm_pad_len(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spu2_gcm_ccm_pad_len(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for spu2_gcm_ccm_pad_len(9). This one is short and sweet, and it's giving β€œhardware handles the padding.” ✨


🌸 NAME 🌸

spu2_gcm_ccm_pad_len β€” Determine the length of GCM/CCM padding for either the AAD field or the data.

✨ SYNOPSIS ✨

u32 spu2_gcm_ccm_pad_len (enum spu_cipher_mode cipher_mode , unsigned
       int data_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • cipher_mode β€” Unused. Like, genuinely unused, no cap.
  • data_size β€” Unused. Also unused, bestie.

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” Unlike SPU-M, SPU2 hardware does any GCM/CCM padding required.

So yeah, the return value is 0. The reason is right there: unlike SPU-M, SPU2 hardware does any GCM/CCM padding required. Periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie:

xoxo, your kernel bestie πŸ’– β€” from ./drivers/crypto/bcm, October 2026, page spu2_gcm_ccm_pad_len(9) in the Kernel API Manual. mwah 🫢

πŸ“¦ where this page comes from