Home
last modified time | relevance | path

Searched refs:ealg (Results 1 – 5 of 5) sorted by relevance

/net/key/
Daf_key.c818 if (x->ealg && x->ealg->alg_key_len) { in __pfkey_xfrm_state2msg()
820 PFKEY_ALIGN8((x->ealg->alg_key_len+7) / 8); in __pfkey_xfrm_state2msg()
867 BUG_ON(x->ealg && x->calg); in __pfkey_xfrm_state2msg()
868 if (x->ealg) { in __pfkey_xfrm_state2msg()
869 struct xfrm_algo_desc *a = xfrm_ealg_get_byname(x->ealg->alg_name, 0); in __pfkey_xfrm_state2msg()
988 key->sadb_key_bits = x->ealg->alg_key_len; in __pfkey_xfrm_state2msg()
990 memcpy(key + 1, x->ealg->alg_key, in __pfkey_xfrm_state2msg()
991 (x->ealg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
1226 x->ealg = kmalloc(sizeof(*x->ealg) + keysize, GFP_KERNEL); in pfkey_msg2xfrm_state()
1227 if (!x->ealg) { in pfkey_msg2xfrm_state()
[all …]
/net/ipv6/
Desp6.c782 if (!x->ealg) in esp_init_authenc()
792 x->ealg->alg_name, in esp_init_authenc()
800 x->ealg->alg_name, in esp_init_authenc()
816 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc()
854 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
855 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
/net/ipv4/
Desp4.c881 if (!x->ealg) in esp_init_authenc()
891 x->ealg->alg_name, in esp_init_authenc()
899 x->ealg->alg_name, in esp_init_authenc()
915 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc()
953 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
954 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
/net/xfrm/
Dxfrm_state.c434 kfree(x->ealg); in xfrm_state_gc_destroy()
1360 if (orig->ealg) { in xfrm_state_clone()
1361 x->ealg = xfrm_algo_clone(orig->ealg); in xfrm_state_clone()
1362 if (!x->ealg) in xfrm_state_clone()
Dxfrm_user.c334 x->ealg = p; in attach_crypt()
916 if (x->ealg) { in copy_to_user_state_extra()
917 ret = nla_put(skb, XFRMA_ALG_CRYPT, xfrm_alg_len(x->ealg), x->ealg); in copy_to_user_state_extra()
2782 if (x->ealg) in xfrm_sa_len()
2783 l += nla_total_size(xfrm_alg_len(x->ealg)); in xfrm_sa_len()