spu2_response_hdr_len(9)
β¨ NAME β¨
spu2_response_hdr_len β bestie, this one tells you the expected length of a SPU response header π
Like, it's a little function from the Kernel API Manual and it's literally just here to hand you a number, no cap.
πΈ SYNOPSIS πΈ
u16 spu2_response_hdr_len (u16 auth_key_len , u16 enc_key_len , bool is_hash );
π ARGUMENTS π
auth_key_lenβ the length of the authentication key, in bytes β¨enc_key_lenβ the length of the encryption key, in bytes π₯is_hashβ unused π it's just sitting there, being decorative, living its truth
π¦ DESCRIPTION π¦
Okay so for SPU2, this includes just FMD. That's it. OMD is never requested β not even once, not even a little. Periodt. π
π RETURN π
The length of FMD, in bytes π
π SEE ALSO π
Kernel file ./drivers/crypto/bcm/spu2.c, plus the whole squad right here:
spu2_cipher_xlate(9)spu2_hash_xlate(9)spu2_fmd_init(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_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)
ngl bestie, the whole page is short and sweet β read it, cite it, slay it π
Okay so that's the whole thing! This lil page lives in the Kernel API Manual, comes from ./drivers/crypto/bcm, and it's dated October 2026 β iconic behavior fr fr π«Άπ
π¦ 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