cnstr_shdsc_skcipher_encap(9)
π cnstr_shdsc_skcipher_encap β Kernel API Manual, bestie β¨
okay so picture this: it's giving kernel crypto, it's giving CAAM, and this lil function is here to build you a skcipher encapsulation shared descriptor. That's the whole vibe. π
πΈ NAME πΈ
cnstr_shdsc_skcipher_encap β skcipher encapsulation shared descriptor. literally what it says on the tin, no cap.
β¨ SYNOPSIS β¨
void cnstr_shdsc_skcipher_encap (u32 * const desc , struct alginfo
*cdata , unsigned int ivsize , const bool is_rfc3686 , const u32
ctx1_iv_off );
she takes no prisoners and returns void β like, she builds the thing, she doesn't hand you a status report. main character energy fr fr. π
π¦ ARGUMENTS π¦
descβ pointer to the buffer you're using for descriptor construction. that's her canvas, her little stage. π¨cdataβ pointer to the block cipher transform definitions. and listen, the valid algorithm values are a whole look: one ofOP_ALG_ALGSEL_{AES, DES, 3DES}ANDed withOP_ALG_AAI_CBCorOP_ALG_AAI_CTR_MOD128.- also
OP_ALG_ALGSEL_CHACHA20slays on its own, she's listed separately bestie π
- also
ivsizeβ initialization vector size. keep it correct, okay? πis_rfc3686βtruewhenctr(aes)is wrapped by an rfc3686 template. so like, it's a bool, and it's the "is this actually rfc3686" bool. iconic.ctx1_iv_offβ IV offset in theCONTEXT1register. don't lose her. πΈ
π₯ SEE ALSO π₯
- Kernel file
./drivers/crypto/caam/caamalg_desc.cβ go read the source, she's right there π 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_decap(9)cnstr_shdsc_xts_skcipher_encap(9)cnstr_shdsc_xts_skcipher_decap(9)
the whole friend group, honestly. go say hi to all of them π«Ά
mwah π that's the page! brought to you by ./drivers/crypto/caam, dated October 2026, and yeah β that's the same path as the manpage header and the footer, do not come for me, i keep the facts EXACTLY where the original put them. iykyk π
β¨
π¦ 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