spu2_aead_ivlen(9)
β¨ spu2_aead_ivlen β¨
okay bestie, gather round because we're about to talk about spu2_aead_ivlen β a kernel function from the spu2 world (that's the SPU2 driver, lowkey iconic) that's literally just here to do one thing: calculate the length of the AEAD IV that gets included in a SPU request, positioned right after the AAD and before the payload. that's it. that's the whole vibe. π
π SYNOPSIS π
u8 spu2_aead_ivlen (enum spu_cipher_mode cipher_mode , u16 iv_len );
πΈ ARGUMENTS πΈ
cipher_modeβ the cipher mode, bestie. it's giving "which cipher are we using today" energy. πiv_lenβ the initialization vector length, measured in bytes. that's the IV length fr fr, no cap. π
π DESCRIPTION π
okay so here's the tea β β for SPU2, the AEAD IV is already included in OMD, which means it does not need to be repeated prior to the payload. so like, no need to double up, the IV's already chilling in OMD where it belongs. main character energy, honestly. β¨
π₯ RETURN π₯
returns the length of the AEAD IV in bytes. that's it. that's the return value. a whole u8's worth of "here's how long your IV is." slay. π
ngl bestie, if you were expecting something more dramatic β this function is a quick lil helper and it knows it.
π SEE ALSO π
if you're obsessed with the SPU2 cipher/hash/fmd universe (and honestly, who isn't), go check out the kernel file ./drivers/crypto/bcm/spu2.c and all these other functions that are literally in the same friend group:
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_response_hdr_len(9)spu2_hash_pad_len(9)spu2_gcm_ccm_pad_len(9)spu2_assoc_resp_len(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)
like a whole squad of SPU2 functions, all referenced from the kernel file ./drivers/crypto/bcm/spu2.c. iykyk π«Ά
big hugs from your favorite kernel bestie π«Ά β this page came straight out of ./drivers/crypto/bcm and is dated October 2026, so you know it's fresh. 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