spum_nsp_ctx_max_payload(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spum_nsp_ctx_max_payload ✨

okay so bestie, welcome to the spum_nsp_ctx_max_payload(9) page β€” it lives in the Kernel API Manual and it's literally here to tell you the biggest payload a SPU message can carry for a given cipher + hash alg context πŸŽ€


πŸ’– NAME πŸ’–

spum_nsp_ctx_max_payload β€” figure out the max length of the payload for a SPU message, for a given cipher and hash alg context. that's it, that's the job 🫢


🌸 SYNOPSIS 🌸

u32 spum_nsp_ctx_max_payload (enum spu_cipher_alg cipher_alg , enum
spu_cipher_mode cipher_mode , unsigned int blocksize );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cipher_alg β€” the cipher algorithm, like which cipher we're doing the math for πŸ”₯
  • cipher_mode β€” the cipher mode, the whole how of it πŸ’…
  • blocksize β€” the size of one block of data for this algo, the unit of everything downstream ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

ok so here's the vibe: the max payload must be a multiple of the blocksize. why? because if a request is too big to fit in a single SPU message, the request gets broken up into chunks that are each max_payload sized. and every single one of those chunks has to be a multiple of blocksize too. no cap 🧚

it's giving "my payload has to divide evenly or the whole thing falls apart" and honestly? iconic. ⭐


🌈 RETURN 🌈

max payload length, in bytes πŸ’œ


πŸ“ SEE ALSO πŸ“

kernel file ./drivers/crypto/bcm/spu.c β€” and the whole friend group:


aaaand that's the page!! πŸ’– this little cutie comes to you from ./drivers/crypto/bcm, dated October 2026 β€” mwah, go read the other spum_* pages, ily, bye πŸ‘‘βœ¨

πŸ“¦ where this page comes from