Home
last modified time | relevance | path

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

/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c119 static int sec_aead_soft_crypto(struct sec_ctx *ctx,
122 static int sec_skcipher_soft_crypto(struct sec_ctx *ctx,
177 struct sec_ctx *ctx = req->ctx; in sec_cb_status_check()
237 static void sec_alg_send_backlog_soft(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_alg_send_backlog_soft()
261 static void sec_alg_send_backlog(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_alg_send_backlog()
293 struct sec_ctx *ctx = req->ctx; in sec_req_cb()
314 struct sec_ctx *ctx; in sec_req_cb3()
379 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
510 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
551 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
[all …]
/linux/net/key/
H A Daf_key.c440 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
443 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
449 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
450 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
455 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
457 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
463 …inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, in pfkey_sadb2xfrm_user_sec_ctx() argument
467 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
474 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
475 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
[all …]
/linux/include/linux/
H A Dsecurity.h1964 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1968 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1983 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
2004 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
H A Dlsm_hook_defs.h390 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)
397 struct xfrm_user_sec_ctx *sec_ctx)
/linux/security/
H A Dsecurity.c4820 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
4823 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
4880 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
4882 return call_int_hook(xfrm_state_alloc, x, sec_ctx); in security_xfrm_state_alloc()