spu2_fmd_init(9)
β¨ NAME β¨
okay so spu2_fmd_init(9) is from the Kernel API Manual, and it is literally the at-setkey-time init bestie for the fixed meta data π
. Like, at setkey time it initializes that fixed meta data so the subsequent skcipher requests for this context are all set up and ready to slay β¨.
π SYNOPSIS π
int spu2_fmd_init (struct SPU2_FMD *fmd , enum spu2_cipher_type
spu2_type , enum spu2_cipher_mode spu2_mode , u32 cipher_key_len , u32
cipher_iv_len );
πΈ ARGUMENTS πΈ
fmdβ start of the FMD field to be written. Like, the beginning of the field, bestie π«Ά.spu2_typeβ cipher algorithm, typed asenum spu2_cipher_type.spu2_modeβ cipher mode, typed asenum spu2_cipher_mode.cipher_key_lenβ length of the cipher key, in bytes, and itβs au32.cipher_iv_lenβ length of the cipher initialization vector, in bytes, also au32β¨.
π RETURN π
0 (success) π. Thatβs the return listed, no cap β success gives you 0, periodt.
π¦ SEE ALSO π¦
Kernel file ./drivers/crypto/bcm/spu2.c, plus all these iconic friends:
spu2_cipher_xlate(9)spu2_hash_xlate(9)spu2_fmd_ctrl0_write(9)spu2_fmd_ctrl1_write(9)spu2_fmd_ctrl2_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 vibe π β from ./drivers/crypto/bcm, dated October 2026, mwah ππΈ
π¦ 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