| /linux/drivers/crypto/caam/ |
| H A D | caamhash_desc.c | 29 int digestsize, int ctx_len, bool import_ctx, int era) in cnstr_shdsc_ahash() argument 58 append_seq_load(desc, ctx_len, LDST_CLASS_2_CCB | in cnstr_shdsc_ahash() 88 int digestsize, int ctx_len) in cnstr_shdsc_sk_hash() argument 110 append_seq_load(desc, ctx_len, LDST_CLASS_1_CCB | in cnstr_shdsc_sk_hash()
|
| H A D | caamhash_desc.h | 25 int digestsize, int ctx_len, bool import_ctx, int era); 28 int digestsize, int ctx_len);
|
| /linux/include/uapi/linux/ |
| H A D | lsm.h | 39 __u64 ctx_len; member 40 __u8 ctx[] __counted_by(ctx_len);
|
| /linux/security/selinux/ |
| H A D | xfrm.c | 87 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user() 97 ctx->ctx_len = str_len + 1; in selinux_xfrm_alloc_user() 298 new_ctx = kmemdup(old_ctx, sizeof(*old_ctx) + old_ctx->ctx_len, in selinux_xfrm_policy_clone() 366 ctx->ctx_len = str_len; in selinux_xfrm_state_alloc_acquire()
|
| H A D | hooks.c | 7043 rc = selinux_lsm_setattr(attr, ctx->ctx, ctx->ctx_len); in selinux_getprocattr()
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_algo.h | 170 #define FILL_KEY_CTX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument 177 KEY_CONTEXT_CTX_LEN_V((ctx_len))) 179 #define FILL_KEY_CRX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument 186 TLS_KEYCTX_RXFLIT_CNT_V((ctx_len)))
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
| H A D | chcr_common.h | 51 #define FILL_KEY_CTX_HDR(ck_size, mk_size, ctx_len) \ argument 56 KEY_CONTEXT_CTX_LEN_V((ctx_len)))
|
| /linux/drivers/nvme/common/ |
| H A D | auth.c | 697 size_t hash_len, ctx_len; in nvme_auth_derive_tls_psk() local 751 ctx_len = sprintf(&hmac_data[i + 1], "%02d %s", hmac_id, psk_digest); in nvme_auth_derive_tls_psk() 752 if (ctx_len > 255) { in nvme_auth_derive_tls_psk() 756 hmac_data[i] = ctx_len; in nvme_auth_derive_tls_psk() 757 i += 1 + ctx_len; in nvme_auth_derive_tls_psk()
|
| /linux/include/linux/ |
| H A D | ccp.h | 289 u32 ctx_len; /* In bytes */ member
|
| /linux/net/key/ |
| H A D | af_key.c | 478 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 480 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx() 812 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg() 1051 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in __pfkey_xfrm_state2msg() 1053 xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg() 2040 len += xfrm_ctx->ctx_len; in pfkey_xfrm_policy2sec_ctx_size() 2221 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_xfrm_policy2msg() 2223 xfrm_ctx->ctx_len); in pfkey_xfrm_policy2msg() 3199 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in pfkey_send_acquire() 3274 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_send_acquire() [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-ops.c | 1515 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd() 1520 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd() 1525 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd() 1531 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd() 1537 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd() 1818 hmac_cmd.u.sha.ctx_len = sha->ctx_len; in ccp_run_sha_cmd()
|
| /linux/tools/testing/selftests/lsm/ |
| H A D | lsm_get_self_attr_test.c | 23 vp = (void *)ctxp + sizeof(*ctxp) + ctxp->ctx_len; in next_ctx()
|
| /linux/net/xfrm/ |
| H A D | xfrm_user.c | 133 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) { in verify_sec_ctx_len() 824 len += xfrm_ctx->ctx_len; in xfrm_user_sec_ctx_size() 1187 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx() 1198 uctx->ctx_len = s->ctx_len; in copy_sec_ctx() 1199 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx() 4055 x->security->ctx_len); in xfrm_sa_len()
|
| H A D | xfrm_state.c | 1960 int size = sizeof(*uctx) + security->ctx_len; in clone_security() 1971 uctx->ctx_len = security->ctx_len; in clone_security() 1972 memcpy(uctx + 1, security->ctx_str, security->ctx_len); in clone_security()
|
| /linux/security/smack/ |
| H A D | smack_lsm.c | 3888 if (ctx->ctx_len == 0) in smack_setprocattr() 3891 if (ctx->ctx[ctx->ctx_len - 1] != '\0') in smack_setprocattr() 3898 return do_setattr(attr, ctx->ctx, ctx->ctx_len - 1); in smack_setprocattr()
|
| /linux/security/ |
| H A D | security.c | 426 nctx->ctx_len = val_len; in lsm_fill_user_ctx() 3838 check_add_overflow(sizeof(*lctx), lctx->ctx_len, &required_len) || in security_setselfattr()
|
| /linux/security/apparmor/ |
| H A D | lsm.c | 936 rc = do_setattr(attr, ctx->ctx, ctx->ctx_len); in apparmor_setselfattr()
|