Home
last modified time | relevance | path

Searched refs:alg_key_len (Results 1 – 14 of 14) sorted by relevance

/linux-5.19.10/include/uapi/linux/
Dxfrm.h104 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/
Dipsec.c149 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/
Desp4.c1031 (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()
Dah4.c496 (x->aalg->alg_key_len + 7) / 8)) in ah_init_state()
/linux-5.19.10/net/ipv6/
Desp6.c1072 (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()
Dah6.c691 (x->aalg->alg_key_len + 7) / 8)) in ah6_init_state()
/linux-5.19.10/net/xfrm/
Dxfrm_user.c362 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/
Dchcr_ipsec.c169 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/
Daf_key.c805 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/
Dipsec.c105 key_len = xs->aead->alg_key_len; in nsim_ipsec_parse_proto_keys()
/linux-5.19.10/tools/testing/selftests/net/
Dipsec.c868 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/
Dxfrm.h1782 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/
Dixgbe_ipsec.c447 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/
Dipsec.c231 key_len = xs->aead->alg_key_len; in ixgbevf_ipsec_parse_proto_keys()