spum_response_hdr_len(9)
β¨ spum_response_hdr_len(9) β¨
okay so bestie, welcome to the kernel API manual π«Ά this one's a little function from the 9 section (that's the kernel API girlies π
) and it's literally all about figuring out how big a SPU response header is gonna be. no cap.
πΈ NAME πΈ
spum_response_hdr_len β given the length of the hash key and encryption key, determine the expected length of a SPU response header π
π¦ SYNOPSIS π¦
u16 spum_response_hdr_len (u16 auth_key_len , u16 enc_key_len , bool
is_hash );
π ARGUMENTS π
auth_key_lenβ the authentication key length, in bytes πenc_key_lenβ the encryption key length, in bytes π₯is_hashβ abool, and it'strueif the response message is for a hash operation β¨
β RETURN β
the length of the SPU response header, in bytes π
π§ SEE ALSO π§
kernel file ./drivers/crypto/bcm/spu.c (yes, that's the one, iykyk), plus the whole friend group:
spum_ns2_ctx_max_payload(9)spum_nsp_ctx_max_payload(9)spum_hash_pad_len(9)spum_gcm_ccm_pad_len(9)spum_assoc_resp_len(9)spum_aead_ivlen(9)spum_hash_type(9)spum_digest_size(9)spum_create_request(9)spum_cipher_req_init(9)spum_cipher_req_finish(9)spum_request_pad(9)spum_xts_tweak_in_payload(9)spum_tx_status_len(9)spum_rx_status_len(9)spum_status_process(9)spum_ccm_update_iv(9)spum_wordalign_padlen(9)
π quick vibe check: this page is from ./drivers/crypto/bcm, dated October 2026, bestie β that's the source and date, so don't come for me, i'm just relaying the info π
and that's the whole page, periodt π β¨ π
π¦ 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