cnstr_shdsc_gcm_encap(9)
π cnstr_shdsc_gcm_encap β gcm encapsulation shared descriptor
okay so bestie, welcome to the Kernel API Manual page for cnstr_shdsc_gcm_encap(9) β yes that's the section 9, kernel-internals energy, we're literally in the guts of the crypto stack rn π«Ά
This one builds you a gcm encapsulation shared descriptor. That's it. That's the whole vibe. β¨
πΈ SYNOPSIS
void cnstr_shdsc_gcm_encap (u32 * const desc , struct alginfo *cdata ,
unsigned int ivsize , unsigned int icvsize , const bool is_qi );
no cap, that's the whole signature β nothing returns, it just does stuff to your buffer π
π ARGUMENTS
descβ pointer to the buffer you're using for descriptor construction. this is where the magic gets written, bestie, so pls make sure it's actually a buffer and not vibes πcdataβ pointer to block cipher transform definitions. valid algorithm values areOP_ALG_ALGSEL_AESANDed withOP_ALG_AAI_GCMβ like, literally those two, ANDed together, that's the combo, iykyk π₯ivsizeβ initialization vector size πicvsizeβ integrity check value (ICV) size, and it can be truncated or full β dealer's choice, both are valid, we love options πis_qiβ abool, and it'struewhen called fromcaam/qiβ so just tell it where you're calling from and it'll handle it β¨
π SEE ALSO
the kernel file lives right here, go read it:
./drivers/crypto/caam/caamalg_desc.c
and here's the whole friend group, all the sibling functions, all iconic, all (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_decap(9)cnstr_shdsc_rfc4106_encap(9)cnstr_shdsc_rfc4106_decap(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, the way this list just goes on β the encap/decap symmetry is giving main character energy fr fr π¦
lowkey reminder bestie:cnstr_shdsc_gcm_encapencaps. if you wanted decap you wantcnstr_shdsc_gcm_decap(9). don't mix them up, that would be a vibe check failure π
and that's the page!! from ./drivers/crypto/caam (that's the source/version corner of the footer, mwah) β October 2026 edition, cnstr_shdsc_gcm_encap(9), signing off πβπ stay encrypted, stay 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