Home
last modified time | relevance | path

Searched refs:sec_ctx (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/drivers/crypto/hisilicon/sec2/
H A Dsec.h48 struct sec_ctx *ctx;
79 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
80 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
81 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
82 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
83 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
84 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
85 int (*process)(struct sec_ctx *ctx, struct sec_req *req);
120 struct sec_ctx *ctx;
133 struct sec_ctx { struct
H A Dsec_crypto.c205 struct sec_ctx *ctx = req->ctx; in sec_cb_status_check()
238 struct sec_ctx *ctx; in sec_req_cb()
664 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
1110 struct sec_ctx *ctx = crypto_tfm_ctx(tfm); in sec_aead_setauthsize()
1131 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey()
1850 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init()
1892 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit()
1902 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init()
1934 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit()
2136 .cra_ctxsize = sizeof(struct sec_ctx),\
[all …]
/linux-6.15/net/key/
H A Daf_key.c443 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
455 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
479 memcpy(uctx + 1, sec_ctx + 1, in pfkey_sadb2xfrm_user_sec_ctx()
770 struct sadb_x_sec_ctx *sec_ctx; in __pfkey_xfrm_state2msg() local
1028 sec_ctx = skb_put(skb, in __pfkey_xfrm_state2msg()
1030 sec_ctx->sadb_x_sec_len = in __pfkey_xfrm_state2msg()
1153 if (sec_ctx != NULL) { in pfkey_msg2xfrm_state()
2299 if (sec_ctx != NULL) { in pfkey_spdadd()
2401 if (sec_ctx != NULL) { in pfkey_spddelete()
3250 sec_ctx = skb_put(skb, in pfkey_send_acquire()
[all …]
/linux-6.15/include/linux/
H A Dsecurity.h1948 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1952 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1967 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1988 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
H A Dlsm_hook_defs.h388 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)
395 struct xfrm_user_sec_ctx *sec_ctx)
/linux-6.15/security/
H A Dsecurity.c5283 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
5286 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
5343 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
5345 return call_int_hook(xfrm_state_alloc, x, sec_ctx); in security_xfrm_state_alloc()