STRUCT SA_TFM_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct sa_tfm_ctx(9) ✨

okay bestie, welcome to the struct sa_tfm_ctx page from the Kernel API Manual β€” this is the TFM context structure and she is literally the main character of your crypto transform setup πŸŽ€


πŸ’– NAME πŸ’–

struct sa_tfm_ctx β€” the TFM context structure, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sa_tfm_ctx {
    struct sa_crypto_data *dev_data;
    struct sa_ctx_info enc;
    struct sa_ctx_info dec;
    struct sa_ctx_info auth;
    int keylen;
    int iv_idx;
    u32 key[AES_KEYSIZE_256 / sizeof(u32)];
    u8 authkey[SHA512_BLOCK_SIZE];
    struct crypto_shash     *shash;
    union {
      struct crypto_skcipher          *skcipher;
      struct crypto_ahash             *ahash;
      struct crypto_aead              *aead;
    } fallback;
 };

look at her. gorgeous. every field exactly where it belongs πŸ’…


🌸 Members 🌸

  • dev_data β€” a struct sa_crypto_data pointer, she's the plug that connects you to the device data 🫢
  • enc β€” a struct sa_ctx_info for encryption, iykyk πŸ”₯
  • dec β€” a struct sa_ctx_info for decryption, the mirror twin ✨
  • auth β€” a struct sa_ctx_info for authentication 🌈
  • keylen β€” the encryption/decryption keylength, like how long the key is πŸŽ€
  • iv_idx β€” the Initialization vector index πŸ‘‘
  • key β€” the encryption key itself, guard her with your life πŸ’€
  • fallback β€” the SW fallback algorithm. and bestie, note the union down there: it can be a struct crypto_skcipher *skcipher, a struct crypto_ahash *ahash, or a struct crypto_aead *aead β€” pick your fighter ⭐

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/crypto/sa2ul.h struct sa_crypto_data(9)
  • struct sa_cmdl_param_info(9)
  • struct sa_cmdl_upd_info(9)
  • struct sa_ctx_info(9)
  • struct sa_sha_req_ctx(9)
  • struct sa_eng_info(9)

and that's the whole vibe, bestie πŸ’– she lives in ./drivers/crypto and this page is dated October 2026 β€” go read the SEE ALSOs, they're all connected fr fr 🧚✨

πŸ“¦ where this page comes from