spum_aead_ivlen(9)
π spum_aead_ivlen(9) β like, the Kernel API Manual era π
okay so bestie, welcome to spum_aead_ivlen, a little function from the Kernel API Manual and honestly? she's lowkey doing the math so you don't have to. no cap. π§
β¨ NAME β¨
spum_aead_ivlen β calculates the length of the AEAD IV that goes into a SPU request, right after the AAD and before the payload. that's it, that's the whole vibe check. π
β¨ SYNOPSIS β¨
u8 spum_aead_ivlen (enum spu_cipher_mode cipher_mode , u16 iv_len );
copy it exactly like that, bestie, don't get creative with the spacing fr fr π«Ά
β¨ ARGUMENTS β¨
cipher_modeβ the cipher mode. yep. that's the whole description. iconic minimalism honestly πiv_lenβ the initialization vector length in bytes. give her a number, she'll do something with it β¨
β¨ DESCRIPTION β¨
so here's the tea β β in Linux ~4.2 and later, the assoc_data sg includes the IV. meaning: there's literally no need to include the IV as its own separate field in the SPU request msg. she ate and left no crumbs. π
like, the IV is already in there. she's already at the party. no need to send a second invite. π
β¨ RETURN β¨
the length of the AEAD IV, in bytes. slay. π
β¨ SEE ALSO β¨
go look at the kernel file ./drivers/crypto/bcm/spu.c β she's the main character, everything else is the supporting cast π:
spum_ns2_ctx_max_payload(9)spum_nsp_ctx_max_payload(9)spum_response_hdr_len(9)spum_hash_pad_len(9)spum_gcm_ccm_pad_len(9)spum_assoc_resp_len(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)
a whole friend group, honestly. iykyk π¦
ok that's the whole page, bestie! sources say./drivers/crypto/bcm, and she was stamped October 2026 β so like, future icon behavior tbh βπ no cap, go read the otherspum_*pages too, they're all in the same group chat πβ¨
π¦ 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