cnstr_shdsc_skcipher_decap(9)
π cnstr_shdsc_skcipher_decap β skcipher decapsulation shared descriptor
okay so bestie, welcome to cnstr_shdsc_skcipher_decap(9) from the Kernel API Manual π β this is the little function that builds you a skcipher decapsulation shared descriptor, and honestly? it's giving "quietly doing the lord's work in the CAAM driver" energy. β¨
β¨ NAME β¨
cnstr_shdsc_skcipher_decap β skcipher decapsulation shared descriptor πΈ
no cap, that's literally what it is.
π¦ SYNOPSIS π¦
void cnstr_shdsc_skcipher_decap (u32 * const desc , struct alginfo
*cdata , unsigned int ivsize , const bool is_rfc3686 , const u32
ctx1_iv_off );
she takes five arguments and returns nothing (void) β she's a builder, not a talker, and we respect that π
π ARGUMENTS π
descβ pointer to the buffer you're using for descriptor construction. yes bestie, she needs somewhere to live, hand her a buffer π«Άcdataβ pointer to the block cipher transform definitions. valid algorithm values are one ofOP_ALG_ALGSEL_{AES, DES, 3DES}ANDed withOP_ALG_AAI_CBCorOP_ALG_AAI_CTR_MOD128. iykyk, it's a whole ANDed situation, don't fight it β¨- also
OP_ALG_ALGSEL_CHACHA20β she's on the list too π₯
- also
ivsizeβ initialization vector size. how big is your IV, bestie? πis_rfc3686βtruewhenctr(aes)is wrapped by therfc3686template. so like, only flex thetruewhen that wrapping is happening, mmkay? πctx1_iv_offβ the IV offset in theCONTEXT1register. that's her little home address in the register, no big deal β
π SEE ALSO π
the kernel file she lives in, for the curious girlies:
./drivers/crypto/caam/caamalg_desc.c
and her whole friend group, periodt π:
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_rfc4106_decap(9), cnstr_shdsc_rfc4543_encap(9), cnstr_shdsc_rfc4543_decap(9), cnstr_shdsc_chachapoly(9), cnstr_shdsc_skcipher_encap(9), cnstr_shdsc_xts_skcipher_encap(9), cnstr_shdsc_xts_skcipher_decap(9)
like, the whole squad showed up π§ββοΈ
and that's the whole page, bestie β no notes, she ate π
sourced straight from ./drivers/crypto/caam in the October 2026 edition of the Kernel API Manual. mwah π mark your calendars, the docs are dated and iconic β¨π
π¦ 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