spu2_create_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so spu2_create_request(9) β€” from the Kernel API Manual β€” is literally the function that builds a SPU2 request message header, includint FMD and OMD (yes, includint, we’re preserving the original spelling πŸ˜­πŸ’…).


✨ SYNOPSIS ✨

u32 spu2_create_request (u8 *spu_hdr , struct spu_request_opts *req_opts
, struct spu_cipher_parms *cipher_parms , struct spu_hash_parms
*hash_parms , struct spu_aead_parms *aead_parms , unsigned int data_size
);

πŸŽ€ ARGUMENTS πŸŽ€

  • spu_hdr β€” start of the buffer where the SPU request header is gonna be written 🫢
  • req_opts β€” the SPU request message options, periodt πŸ’…
  • cipher_parms β€” all the parameters related to the cipher algorithm πŸ”
  • hash_parms β€” all the parameters related to the hash algorithm 🌸
  • aead_parms β€” all the parameters related to the AEAD operation ✨
  • data_size β€” length of the data to be encrypted or authenticated. if it’s AEAD, this does not include the length of AAD, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This function constructs the message starting at spu_hdr. The caller should allocate this buffer in DMA-able memory, and it needs to be at least SPU_HEADER_ALLOC_LEN bytes long β€” that’s the minimum, no cap πŸŽ€βœ¨.


🌸 RETURN 🌸

It returns the length of the SPU header in bytes. returns 0 if an error occurs 😭.


πŸ”₯ SEE ALSO πŸ”₯

the whole squad is linked here, bestie:


mwah πŸ’‹ β€” source/version: ./drivers/crypto/bcm, date: October 2026. go build those headers, bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from