cnstr_shdsc_skcipher_encap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of OP_ALG_ALGSEL_{AES, DES, 3DES} ANDed with OP_ALG_AAI_CBC or OP_ALG_AAI_CTR_MOD128.
    • also OP_ALG_ALGSEL_CHACHA20 slays on its own, she's listed separately bestie πŸ’œ
  • ivsize β€” initialization vector size. keep it correct, okay? πŸ™ˆ
  • is_rfc3686 β€” true when ctr(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 the CONTEXT1 register. don't lose her. 🌸

πŸ”₯ SEE ALSO πŸ”₯

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