STRUCT SEC_ALG_TFM_CTX(9)
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 protectskeyandpkeyto 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
- 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