spu2_fmd_ctrl2_write(9)
π spu2_fmd_ctrl2_write(9) π
okay bestie, welcome to the Kernel API Manual page for spu2_fmd_ctrl2_write(9) β we're setting the ctrl2 field inside the fixed metadata field of the SPU2 header, and it's giving β¨kernel cryptoβ¨. π¦
β¨ NAME β¨
spu2_fmd_ctrl2_write β sets the ctrl2 field in the fixed metadata field of the SPU2 header. Literally that's the job, no cap. π
πΈ SYNOPSIS πΈ
void spu2_fmd_ctrl2_write (struct SPU2_FMD *fmd , u64 cipher_offset ,
u64 auth_key_len , u64 auth_iv_len , u64 cipher_key_len , u64
cipher_iv_len );
π ARGUMENTS π
fmdβ start of the FMD field to be written. This is the spot you're writing into. π«Άcipher_offsetβ number of bytes from Start of Packet (end of FD field) where data to be encrypted or decrypted begins. That's the starting line for the cipher data. π₯auth_key_lenβ length of authentication key, in bytes.auth_iv_lenβ length of authentication initialization vector, in bytes.cipher_key_lenβ length of cipher key, in bytes.cipher_iv_lenβ length of cipher IV, in bytes.
π SEE ALSO π
Kernel file: ./drivers/crypto/bcm/spu2.c β and here's the whole function friend group, all invited to the group chat: π¬
spu2_cipher_xlate(9)spu2_hash_xlate(9)spu2_fmd_init(9)spu2_fmd_ctrl0_write(9)spu2_fmd_ctrl1_write(9)spu2_fmd_ctrl3_write(9)spu2_ctx_max_payload(9)spu2_payload_length(9)spu2_response_hdr_len(9)spu2_hash_pad_len(9)spu2_gcm_ccm_pad_len(9)spu2_assoc_resp_len(9)spu2_aead_ivlen(9)spu2_hash_type(9)spu2_digest_size(9)spu2_create_request(9)spu2_cipher_req_init(9)spu2_cipher_req_finish(9)spu2_request_pad(9)spu2_xts_tweak_in_payload(9)spu2_tx_status_len(9)spu2_rx_status_len(9)spu2_status_process(9)spu2_ccm_update_iv(9)spu2_wordalign_padlen(9)
π«Ά that's the whole page, bestie β source/version: ./drivers/crypto/bcm; date: October 2026; and yes, we're still in spu2_fmd_ctrl2_write(9) land. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms