Searched refs:ealg (Results 1 – 5 of 5) sorted by relevance
/net/key/ |
D | af_key.c | 818 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/ |
D | esp6.c | 782 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/ |
D | esp4.c | 881 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/ |
D | xfrm_state.c | 434 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()
|
D | xfrm_user.c | 334 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()
|