spum_ns2_ctx_max_payload(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– spum_ns2_ctx_max_payload(9) β€” Kernel API Manual, but make it make sense πŸ’–

okay so bestie, welcome to the spum_ns2_ctx_max_payload(9) page from the Kernel API Manual. We're here to determine the max length of the payload for a SPU message for a given cipher and hash alg context. it's giving β€œsmall helper, big chunking energy” ✨


🌸 NAME 🌸

spum_ns2_ctx_max_payload β€” determine the max length of the payload for a SPU message for a given cipher and hash alg context. literally the whole point, and she ate. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

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

🌈 ARGUMENTS 🌈

  • cipher_alg β€” the cipher algorithm. yes bestie, you gotta tell her which one.
  • cipher_mode β€” the cipher mode. mode check, but make it cipher. πŸ’…
  • blocksize β€” the size of a block of data for this algo.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the max payload must be a multiple of blocksize β€” mandatory, not a suggestion, periodt. Why? Because if a request is too large to fit in a single SPU message, the request can be broken into max_payload sized chunks. Each chunk must also be a multiple of blocksize. So yeah, the chunk math has to math. ✨

πŸ‘‘ RETURN πŸ‘‘

Max payload length in bytes. that's it, that's the tea. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/crypto/bcm/spu.c β€” go read the source, bestie, iykyk. Also these iconic little functions:


okay bye bestie 🫢 β€” this page is from ./drivers/crypto/bcm, dated October 2026, and it's literally the spum_ns2_ctx_max_payload(9) manual page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from