Searched refs:alg_key_len (Results 1 – 14 of 14) sorted by relevance
/linux-5.19.10/include/uapi/linux/ |
D | xfrm.h | 104 unsigned int alg_key_len; /* in bits */ member 110 unsigned int alg_key_len; /* in bits */ member 117 unsigned int alg_key_len; /* in bits */ member
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 149 crypto_data_len = (x->aead->alg_key_len + 7) / 8; in mlx5e_ipsec_build_accel_xfrm_attrs() 242 if ((x->aead->alg_key_len != 128 + 32) && in mlx5e_xfrm_validate_state() 243 (x->aead->alg_key_len != 256 + 32)) { in mlx5e_xfrm_validate_state()
|
/linux-5.19.10/net/ipv4/ |
D | esp4.c | 1031 (x->aead->alg_key_len + 7) / 8); in esp_init_aead() 1085 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() 1086 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc() 1102 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc() 1103 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc() 1124 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc() 1125 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
|
D | ah4.c | 496 (x->aalg->alg_key_len + 7) / 8)) in ah_init_state()
|
/linux-5.19.10/net/ipv6/ |
D | esp6.c | 1072 (x->aead->alg_key_len + 7) / 8); in esp_init_aead() 1126 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() 1127 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc() 1143 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc() 1144 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc() 1165 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc() 1166 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
|
D | ah6.c | 691 (x->aalg->alg_key_len + 7) / 8)) in ah6_init_state()
|
/linux-5.19.10/net/xfrm/ |
D | xfrm_user.c | 362 p = kmalloc(sizeof(*p) + (ualg->alg_key_len + 7) / 8, GFP_KERNEL); in attach_auth() 367 p->alg_key_len = ualg->alg_key_len; in attach_auth() 369 memcpy(p->alg_key, ualg->alg_key, (ualg->alg_key_len + 7) / 8); in attach_auth() 875 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 881 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 882 memset(algo->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 885 (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 886 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth() 893 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 894 memset(ap->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth() [all …]
|
/linux-5.19.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 169 int keylen = (x->aead->alg_key_len + 7) / 8; in ch_ipsec_setkey() 269 if ((x->aead->alg_key_len != 128 + 32) && in ch_ipsec_xfrm_add_state() 270 (x->aead->alg_key_len != 256 + 32)) { in ch_ipsec_xfrm_add_state()
|
/linux-5.19.10/net/key/ |
D | af_key.c | 805 if (x->aalg && x->aalg->alg_key_len) { in __pfkey_xfrm_state2msg() 807 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8); in __pfkey_xfrm_state2msg() 810 if (x->ealg && x->ealg->alg_key_len) { in __pfkey_xfrm_state2msg() 812 PFKEY_ALIGN8((x->ealg->alg_key_len+7) / 8); in __pfkey_xfrm_state2msg() 968 key->sadb_key_bits = x->aalg->alg_key_len; in __pfkey_xfrm_state2msg() 970 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg() 978 key->sadb_key_bits = x->ealg->alg_key_len; in __pfkey_xfrm_state2msg() 981 (x->ealg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg() 1183 x->aalg->alg_key_len = 0; in pfkey_msg2xfrm_state() 1185 x->aalg->alg_key_len = key->sadb_key_bits; in pfkey_msg2xfrm_state() [all …]
|
/linux-5.19.10/drivers/net/netdevsim/ |
D | ipsec.c | 105 key_len = xs->aead->alg_key_len; in nsim_ipsec_parse_proto_keys()
|
/linux-5.19.10/tools/testing/selftests/net/ |
D | ipsec.c | 868 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 879 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 892 sizeof(alg.buf), &alg.u.aead.alg_key_len)) in xfrm_state_pack_algo() 900 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 908 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo()
|
/linux-5.19.10/include/net/ |
D | xfrm.h | 1782 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in aead_len() 1787 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_len() 1792 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_auth_len()
|
/linux-5.19.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 447 key_len = xs->aead->alg_key_len; in ixgbe_ipsec_parse_proto_keys() 943 xs->aead->alg_key_len = IXGBE_IPSEC_KEY_BITS; in ixgbe_ipsec_vf_add_sa()
|
/linux-5.19.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 231 key_len = xs->aead->alg_key_len; in ixgbevf_ipsec_parse_proto_keys()
|