/linux-6.6.21/drivers/net/ethernet/netronome/nfp/crypto/ |
D | ipsec.c | 368 key_len = DIV_ROUND_UP(x->aalg->alg_key_len, BITS_PER_BYTE); in nfp_net_xfrm_add_state() 408 if (set_aes_keylen(cfg, x->props.ealgo, x->aead->alg_key_len - 32)) { in nfp_net_xfrm_add_state() 419 if (set_aes_keylen(cfg, x->props.ealgo, x->ealg->alg_key_len) < 0) { in nfp_net_xfrm_add_state() 432 key_len = DIV_ROUND_UP(x->aead->alg_key_len, BITS_PER_BYTE); in nfp_net_xfrm_add_state() 449 key_len = DIV_ROUND_UP(x->ealg->alg_key_len, BITS_PER_BYTE); in nfp_net_xfrm_add_state()
|
/linux-6.6.21/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-6.6.21/net/xfrm/ |
D | xfrm_user.c | 442 p = kmalloc(sizeof(*p) + (ualg->alg_key_len + 7) / 8, GFP_KERNEL); in attach_auth() 447 p->alg_key_len = ualg->alg_key_len; in attach_auth() 449 memcpy(p->alg_key, ualg->alg_key, (ualg->alg_key_len + 7) / 8); in attach_auth() 981 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 987 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 988 memset(algo->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 991 (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 992 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth() 999 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 1000 memset(ap->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | esp4.c | 1033 (x->aead->alg_key_len + 7) / 8); in esp_init_aead() 1093 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() 1094 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc() 1110 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc() 1111 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc() 1131 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc() 1132 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
|
D | ah4.c | 502 (x->aalg->alg_key_len + 7) / 8)) { in ah_init_state()
|
/linux-6.6.21/net/ipv6/ |
D | esp6.c | 1076 (x->aead->alg_key_len + 7) / 8); in esp_init_aead() 1136 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() 1137 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc() 1153 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc() 1154 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc() 1174 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc() 1175 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
|
D | ah6.c | 697 (x->aalg->alg_key_len + 7) / 8)) { in ah6_init_state()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 170 int keylen = (x->aead->alg_key_len + 7) / 8; in ch_ipsec_setkey() 271 if ((x->aead->alg_key_len != 128 + 32) && in ch_ipsec_xfrm_add_state() 272 (x->aead->alg_key_len != 256 + 32)) { in ch_ipsec_xfrm_add_state()
|
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 320 crypto_data_len = (x->aead->alg_key_len + 7) / 8; in mlx5e_ipsec_build_accel_xfrm_attrs() 459 if ((x->aead->alg_key_len != 128 + 32) && in mlx5e_xfrm_validate_state() 460 (x->aead->alg_key_len != 256 + 32)) { in mlx5e_xfrm_validate_state()
|
/linux-6.6.21/drivers/net/netdevsim/ |
D | ipsec.c | 105 key_len = xs->aead->alg_key_len; in nsim_ipsec_parse_proto_keys()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | ipsec.c | 854 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 865 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 878 sizeof(alg.buf), &alg.u.aead.alg_key_len)) in xfrm_state_pack_algo() 886 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 894 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 447 key_len = xs->aead->alg_key_len; in ixgbe_ipsec_parse_proto_keys() 949 xs->aead->alg_key_len = IXGBE_IPSEC_KEY_BITS; in ixgbe_ipsec_vf_add_sa()
|
/linux-6.6.21/include/net/ |
D | xfrm.h | 1862 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in aead_len() 1867 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_len() 1872 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_auth_len()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 231 key_len = xs->aead->alg_key_len; in ixgbevf_ipsec_parse_proto_keys()
|