cnstr_shdsc_rfc4106_decap(9)
β¨ cnstr_shdsc_rfc4106_decap β¨
okay so this is a page from the Kernel API Manual, section 9, and it's all about one very specific little function π
πΈ NAME πΈ
cnstr_shdsc_rfc4106_decap β the IPSec ESP gcm decapsulation shared descriptor (and yes bestie, it's the non-protocol one π«Ά)
β¨ SYNOPSIS β¨
void cnstr_shdsc_rfc4106_decap (u32 * const desc , struct alginfo *cdata
, unsigned int ivsize , unsigned int icvsize , const bool is_qi );
literally that's it, that's the whole signature π it returns void, so no return value to obsess over π
π ARGUMENTS π
descβ pointer to the buffer used for descriptor construction π§ this is where the magic gets written, no capcdataβ pointer to block cipher transform definitions π¦ and here's the vibe check on the values: valid algorithm values areOP_ALG_ALGSEL_AESANDed withOP_ALG_AAI_GCM. like, that's the combo, periodt π₯ivsizeβ initialization vector size βicvsizeβ integrity check value (ICV) size, and it can be truncated or full π your callis_qiβ abool, and it'struewhen called fromcaam/qiπ
π SEE ALSO π
the kernel file it lives in, first of all: ./drivers/crypto/caam/caamalg_desc.c π
and the whole friend group of related functions, all in section 9:
cnstr_shdsc_aead_null_encap(9)cnstr_shdsc_aead_null_decap(9)cnstr_shdsc_aead_encap(9)cnstr_shdsc_aead_decap(9)cnstr_shdsc_aead_givencap(9)cnstr_shdsc_gcm_encap(9)cnstr_shdsc_gcm_decap(9)cnstr_shdsc_rfc4106_encap(9)cnstr_shdsc_rfc4543_encap(9)cnstr_shdsc_rfc4543_decap(9)cnstr_shdsc_chachapoly(9)cnstr_shdsc_skcipher_encap(9)cnstr_shdsc_skcipher_decap(9)cnstr_shdsc_xts_skcipher_encap(9)cnstr_shdsc_xts_skcipher_decap(9)
like ok go off, the entire caam crypto squad showed up ππ
and that's the whole page bestie, mwah π this one came straight out of ./drivers/crypto/caam and it's dated October 2026, so yeah β go build those descriptors, you're gonna slay πβ¨π¦
π¦ 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