Home
last modified time | relevance | path

Searched refs:alg_key (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/include/uapi/linux/
Dxfrm.h105 char alg_key[]; member
112 char alg_key[]; member
119 char alg_key[]; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c149 memcpy(aes_gcm->aes_key, x->aead->alg_key, key_len); in mlx5e_ipsec_build_accel_xfrm_attrs()
157 memcpy(&aes_gcm->salt, x->aead->alg_key + key_len, in mlx5e_ipsec_build_accel_xfrm_attrs()
/linux-6.1.9/net/xfrm/
Dxfrm_user.c449 memcpy(p->alg_key, ualg->alg_key, (ualg->alg_key_len + 7) / 8); in attach_auth()
971 memset(algo->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
973 memcpy(algo->alg_key, auth->alg_key, in copy_to_user_auth()
983 memset(ap->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
985 memcpy(ap->alg_key, auth->alg_key, in copy_to_user_auth()
1003 memset(ap->alg_key, 0, (aead->alg_key_len + 7) / 8); in copy_to_user_aead()
1005 memcpy(ap->alg_key, aead->alg_key, in copy_to_user_aead()
1023 memset(ap->alg_key, 0, (ealg->alg_key_len + 7) / 8); in copy_to_user_ealg()
1025 memcpy(ap->alg_key, ealg->alg_key, in copy_to_user_ealg()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c37 memcpy(sam->key, xs->aead->alg_key, sizeof(sam->key)); in ixgbevf_ipsec_set_pf_sa()
230 key_data = &xs->aead->alg_key[0]; in ixgbevf_ipsec_parse_proto_keys()
/linux-6.1.9/drivers/net/netdevsim/
Dipsec.c104 key_data = &xs->aead->alg_key[0]; in nsim_ipsec_parse_proto_keys()
/linux-6.1.9/net/ipv4/
Desp4.c1030 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead()
1108 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1130 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
Dah4.c501 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah_init_state()
/linux-6.1.9/net/ipv6/
Desp6.c1073 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead()
1151 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1173 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
Dah6.c696 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah6_init_state()
/linux-6.1.9/tools/testing/selftests/net/
Dipsec.c853 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo()
864 if (xfrm_fill_key(desc->c_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo()
877 if (xfrm_fill_key(desc->ae_algo, alg.u.aead.alg_key, in xfrm_state_pack_algo()
885 if (xfrm_fill_key(desc->e_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo()
893 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c446 key_data = &xs->aead->alg_key[0]; in ixgbe_ipsec_parse_proto_keys()
944 memcpy(xs->aead->alg_key, sam->key, sizeof(sam->key)); in ixgbe_ipsec_vf_add_sa()
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c170 unsigned char *key = x->aead->alg_key; in ch_ipsec_setkey()
/linux-6.1.9/net/key/
Daf_key.c970 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
980 memcpy(key + 1, x->ealg->alg_key, in __pfkey_xfrm_state2msg()
1186 memcpy(x->aalg->alg_key, key+1, keysize); in pfkey_msg2xfrm_state()
1225 memcpy(x->ealg->alg_key, key+1, keysize); in pfkey_msg2xfrm_state()