STRUCT SEC_ALG_TFM_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the struct sec_alg_tfm_ctx(9) manual page β€” this is the Kernel API Manual, and we're about to make this struct make sense πŸ’–βœ¨

✨ NAME ✨

struct sec_alg_tfm_ctx β€” hardware specific tranformation context πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct sec_alg_tfm_ctx {
           enum sec_cipher_alg cipher_alg;
           u8 *key;
           dma_addr_t pkey;
           struct sec_bd_info req_template;
           struct sec_queue *queue;
           struct mutex lock;
           u8 *auth_buf;
           struct list_head backlog;
        };

πŸŽ€ Members πŸŽ€

  • cipher_alg β€” the cipher algorithm that's enabled, and it includes the encryption mode ✨
  • key β€” where the key storage lives, if key storage is required πŸ”‘
  • pkey β€” the DMA address for the key storage, bestie πŸ’«
  • req_template β€” a request template so setup doesn't have to start from scratch β€” it saves time, fr fr ⏱️
  • queue β€” the hardware queue associated with this tfm context πŸ‘‘
  • lock β€” a mutex that protects key and pkey to make sure they stay consistent, no cap πŸ”’
  • auth_buf β€” the current context buffer for auth operations 🫢
  • backlog β€” the backlog queue used for cases where our buffers aren't large enough 😭

πŸ”₯ SEE ALSO πŸ”₯

go peek at the kernel file ./drivers/crypto/hisilicon/sec/sec_drv.h, plus these iconic references: struct sec_queue_ring_cmd(9), struct sec_request(9), struct sec_request_el(9), struct sec_queue(9), struct sec_hw_sge(9), struct sec_hw_sgl(9), and struct sec_dev_info(9) βœ¨πŸ’…


source/version vibes: ./drivers/crypto/hisilicon/sec, dated October 2026, and this is literally the struct sec_alg_tfm_ctx(9) page β€” love u, bye πŸ’–πŸ¦‹

πŸ“¦ where this page comes from