STRUCT SA_CMDL_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct sa_cmdl_cfg(9) ✨

okay so bestie, welcome to the Kernel API Manual page for struct sa_cmdl_cfg β€” literally the command label configuration descriptor and honestly? it's giving "small struct, big job" energy πŸŽ€


🌸 NAME 🌸

struct sa_cmdl_cfg β€” the Command label configuration descriptor. yeah. that's the whole vibe. it's the little descriptor that holds all your command-label config goodness πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sa_cmdl_cfg {
    int aalg;
    u8 enc_eng_id;
    u8 auth_eng_id;
    u8 iv_size;
    const u8 *akey;
    u16 akey_len;
    bool enc;
 };

like, that's the whole thing. seven members, zero drama, all business ✨


πŸ’– Members πŸ’–

okay so let's go through the squad one by one, no cap:

  • aalg β€” the authentication algorithm ID. that's it, that's the member, it just tells you which auth algo we're talking about πŸ”₯
  • enc_eng_id β€” the Encryption Engine ID supported by the SA hardware. it's a u8 btw, so keep it cozy πŸ‘‘
  • auth_eng_id β€” the Authentication Engine ID. sibling energy to enc_eng_id, but for auth 🫢
  • iv_size β€” the Initialization Vector size. how big is the IV? this member knows 🌈
  • akey β€” the Authentication key. note it's a const u8 *, so nobody's mutating it on your watch, periodt πŸ’€
  • akey_len β€” the Authentication key length. it's a u16, and yes it pairs with akey like they're matching bracelets πŸŽ€
  • enc β€” a bool that's True, if this is an encode request. literally just true-or-false, main character energy ⭐

🌟 SEE ALSO 🌟

Kernel file ./drivers/crypto/sa2ul.c and the whole friend group: struct algo_data(9), struct sa_alg_tmpl(9), struct sa_mapped_sg(9), struct sa_rx_data(9), struct sa_req(9) β€” go say hi, they're all icons 🧚


ngl bestie, if you're poking at the SA command label config, you're already deep in the crypto driver trenches. iykyk πŸ’œ

and that's the page!! sending you off with love from ./drivers/crypto, October 2026 edition β€” mwah, go read the source, ily, bye πŸ’–πŸŒΈπŸŽ€

πŸ“¦ where this page comes from