spu2_fmd_ctrl1_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spu2_fmd_ctrl1_write(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this page is literally all about writing the ctrl1 field in the fixed metadata (FMD) field of an SPU request packet. no cap 🫢

🌸 NAME 🌸

spu2_fmd_ctrl1_write β€” write the ctrl1 field in the fixed metadata (FMD) field of an SPU request packet. πŸ’–

✨ SYNOPSIS ✨

it's giving void return, and the full signature is right here:

void spu2_fmd_ctrl1_write (struct SPU2_FMD *fmd , bool is_inbound , u64
       assoc_size , u64 auth_key_len , u64 cipher_key_len , bool gen_iv , bool
       hash_iv , bool return_iv , u64 ret_iv_len , u64 ret_iv_offset , u64
       cipher_iv_len , u64 digest_size , bool return_payload , bool return_md
       );

πŸŽ€ ARGUMENTS πŸŽ€

every single argument, in order, with all the details preserved β€” let's go πŸ’…

  • fmd β€” start of the FMD field to be written. πŸ’–
  • is_inbound β€” true if decrypting. false if encrypting. πŸ”
  • assoc_size β€” length of additional associated data, in bytes.
  • auth_key_len β€” length of authentication key, in bytes.
  • cipher_key_len β€” length of cipher key, in bytes.
  • gen_iv β€” if true, hw generates IV and returns in response. ✨
  • hash_iv β€” IV participates in hash. Used for IPSEC and TLS.
  • return_iv β€” return IV in output packet before payload.
  • ret_iv_len β€” length of IV returned from SPU, in bytes.
  • ret_iv_offset β€” offset into full IV of start of returned IV.
  • cipher_iv_len β€” length of input cipher IV, in bytes.
  • digest_size β€” length of digest (aka, hash tag or ICV), in bytes.
  • return_payload β€” return payload in SPU response.
  • return_md β€” return metadata in SPU response.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk, bestie:

Packet can have AAD2 w/o AAD1. For algorithms currently supported, associated data goes in AAD2.

that's the whole vibe of this section, and every detail is staying exactly where it belongs. πŸ’€βœ¨

🌈 SEE ALSO 🌈

go read these, bestie β€” every reference from the original list is here:


mwah πŸ’‹ this page is from source/version ./drivers/crypto/bcm and dated October 2026. periodt. πŸŽ€

πŸ“¦ where this page comes from