Symbol: sec_ctx
drivers/crypto/hisilicon/sec2/sec.h
123
int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
124
void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
125
void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
126
int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
127
int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
128
void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
drivers/crypto/hisilicon/sec2/sec.h
129
int (*process)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
164
struct sec_ctx *ctx;
drivers/crypto/hisilicon/sec2/sec.h
91
struct sec_ctx *ctx;
drivers/crypto/hisilicon/sec2/sec_crypto.c
1013
static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1139
static int sec_cipher_map_inner(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
119
static int sec_aead_soft_crypto(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1211
static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
122
static int sec_skcipher_soft_crypto(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1277
static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1316
static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1323
static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1380
struct sec_ctx *ctx = crypto_tfm_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
1401
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
1472
static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1479
static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1486
static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1507
static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1512
static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1520
static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1575
static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1673
static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1690
static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1734
static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
177
struct sec_ctx *ctx = req->ctx;
drivers/crypto/hisilicon/sec2/sec_crypto.c
1843
static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1898
static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1921
static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1954
static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1969
static int sec_process(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2060
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2088
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2130
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2140
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2172
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2182
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2207
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2228
static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, struct sec_req *sreq)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2258
static int sec_skcipher_param_check(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
2295
static int sec_skcipher_soft_crypto(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
2329
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
237
static void sec_alg_send_backlog_soft(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2381
.cra_ctxsize = sizeof(struct sec_ctx),\
drivers/crypto/hisilicon/sec2/sec_crypto.c
2457
static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2492
static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq, bool *need_fallback)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2529
static int sec_aead_soft_crypto(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
2561
struct sec_ctx *ctx = crypto_aead_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
2609
.cra_ctxsize = sizeof(struct sec_ctx),\
drivers/crypto/hisilicon/sec2/sec_crypto.c
261
static void sec_alg_send_backlog(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
293
struct sec_ctx *ctx = req->ctx;
drivers/crypto/hisilicon/sec2/sec_crypto.c
314
struct sec_ctx *ctx;
drivers/crypto/hisilicon/sec2/sec_crypto.c
379
static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
510
static int sec_alg_resource_alloc(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
551
static void sec_alg_resource_free(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
566
static int sec_alloc_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
610
static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
621
static int sec_create_qp_ctx(struct sec_ctx *ctx, int qp_ctx_id)
drivers/crypto/hisilicon/sec2/sec_crypto.c
653
static void sec_release_qp_ctx(struct sec_ctx *ctx,
drivers/crypto/hisilicon/sec2/sec_crypto.c
660
static int sec_ctx_base_init(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
698
static void sec_ctx_base_uninit(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
712
static int sec_cipher_init(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
727
static void sec_cipher_uninit(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
739
static int sec_auth_init(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
751
static void sec_auth_uninit(struct sec_ctx *ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
766
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
783
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
817
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
828
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
899
struct sec_ctx *ctx = crypto_skcipher_ctx(tfm);
drivers/crypto/hisilicon/sec2/sec_crypto.c
965
static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req,
include/linux/lsm_hook_defs.h
400
struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)
include/linux/lsm_hook_defs.h
407
struct xfrm_user_sec_ctx *sec_ctx)
include/linux/security.h
1997
struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
include/linux/security.h
2001
int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
include/linux/security.h
2016
struct xfrm_user_sec_ctx *sec_ctx,
include/linux/security.h
2037
struct xfrm_user_sec_ctx *sec_ctx)
net/key/af_key.c
1044
sec_ctx = skb_put(skb,
net/key/af_key.c
1046
sec_ctx->sadb_x_sec_len =
net/key/af_key.c
1048
sec_ctx->sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX;
net/key/af_key.c
1049
sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi;
net/key/af_key.c
1050
sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg;
net/key/af_key.c
1051
sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len;
net/key/af_key.c
1052
memcpy(sec_ctx + 1, xfrm_ctx->ctx_str,
net/key/af_key.c
1083
const struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
1168
sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1];
net/key/af_key.c
1169
if (sec_ctx != NULL) {
net/key/af_key.c
1170
struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
net/key/af_key.c
2087
struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
2215
sec_ctx = skb_put(skb, ctx_size);
net/key/af_key.c
2216
sec_ctx->sadb_x_sec_len = ctx_size / sizeof(uint64_t);
net/key/af_key.c
2217
sec_ctx->sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX;
net/key/af_key.c
2218
sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi;
net/key/af_key.c
2219
sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg;
net/key/af_key.c
2220
sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len;
net/key/af_key.c
2221
memcpy(sec_ctx + 1, xfrm_ctx->ctx_str,
net/key/af_key.c
2271
struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
2314
sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1];
net/key/af_key.c
2315
if (sec_ctx != NULL) {
net/key/af_key.c
2316
struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
net/key/af_key.c
2386
struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
2416
sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1];
net/key/af_key.c
2417
if (sec_ctx != NULL) {
net/key/af_key.c
2418
struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
net/key/af_key.c
3178
struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
3266
sec_ctx = skb_put(skb,
net/key/af_key.c
3268
sec_ctx->sadb_x_sec_len =
net/key/af_key.c
3270
sec_ctx->sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX;
net/key/af_key.c
3271
sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi;
net/key/af_key.c
3272
sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg;
net/key/af_key.c
3273
sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len;
net/key/af_key.c
3274
memcpy(sec_ctx + 1, xfrm_ctx->ctx_str,
net/key/af_key.c
3288
struct sadb_x_sec_ctx *sec_ctx;
net/key/af_key.c
3345
sec_ctx = (struct sadb_x_sec_ctx *)p;
net/key/af_key.c
3347
sec_ctx->sadb_x_sec_len*8) {
net/key/af_key.c
3353
uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_ATOMIC);
net/key/af_key.c
440
static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx)
net/key/af_key.c
443
sec_ctx->sadb_x_ctx_len,
net/key/af_key.c
449
const struct sadb_x_sec_ctx *sec_ctx = p;
net/key/af_key.c
450
int len = sec_ctx->sadb_x_ctx_len;
net/key/af_key.c
455
len = pfkey_sec_ctx_len(sec_ctx);
net/key/af_key.c
457
if (sec_ctx->sadb_x_sec_len != len)
net/key/af_key.c
463
static inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx,
net/key/af_key.c
467
int ctx_size = sec_ctx->sadb_x_ctx_len;
net/key/af_key.c
474
uctx->len = pfkey_sec_ctx_len(sec_ctx);
net/key/af_key.c
475
uctx->exttype = sec_ctx->sadb_x_sec_exttype;
net/key/af_key.c
476
uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi;
net/key/af_key.c
477
uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg;
net/key/af_key.c
478
uctx->ctx_len = sec_ctx->sadb_x_ctx_len;
net/key/af_key.c
479
memcpy(uctx + 1, sec_ctx + 1,
net/key/af_key.c
786
struct sadb_x_sec_ctx *sec_ctx;
security/security.c
4942
struct xfrm_user_sec_ctx *sec_ctx,
security/security.c
4945
return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp);
security/security.c
5002
struct xfrm_user_sec_ctx *sec_ctx)
security/security.c
5004
return call_int_hook(xfrm_state_alloc, x, sec_ctx);