Searched refs:ealg (Results 1 - 7 of 7) sorted by relevance
/linux-4.4.14/net/ipv6/ |
H A D | esp6.c | 538 if (!x->ealg) esp_init_authenc() 548 x->ealg->alg_name, esp_init_authenc() 556 x->ealg->alg_name, esp_init_authenc() 569 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); esp_init_authenc() 607 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); esp_init_authenc() 608 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); esp_init_authenc()
|
/linux-4.4.14/net/key/ |
H A D | af_key.c | 771 if (x->ealg && x->ealg->alg_key_len) { __pfkey_xfrm_state2msg() 773 PFKEY_ALIGN8((x->ealg->alg_key_len+7) / 8); __pfkey_xfrm_state2msg() 820 BUG_ON(x->ealg && x->calg); __pfkey_xfrm_state2msg() 821 if (x->ealg) { __pfkey_xfrm_state2msg() 822 struct xfrm_algo_desc *a = xfrm_ealg_get_byname(x->ealg->alg_name, 0); __pfkey_xfrm_state2msg() 948 key->sadb_key_bits = x->ealg->alg_key_len; __pfkey_xfrm_state2msg() 950 memcpy(key + 1, x->ealg->alg_key, __pfkey_xfrm_state2msg() 951 (x->ealg->alg_key_len+7)/8); __pfkey_xfrm_state2msg() 1183 x->ealg = kmalloc(sizeof(*x->ealg) + keysize, GFP_KERNEL); pfkey_msg2xfrm_state() 1184 if (!x->ealg) pfkey_msg2xfrm_state() 1186 strcpy(x->ealg->alg_name, a->name); pfkey_msg2xfrm_state() 1187 x->ealg->alg_key_len = 0; pfkey_msg2xfrm_state() 1189 x->ealg->alg_key_len = key->sadb_key_bits; pfkey_msg2xfrm_state() 1190 memcpy(x->ealg->alg_key, key+1, keysize); pfkey_msg2xfrm_state() 1635 struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); compose_sadb_supported() local 1636 if (!ealg) compose_sadb_supported() 1638 if (!ealg->pfkey_supported) compose_sadb_supported() 1640 if (ealg->available) compose_sadb_supported() 1641 *ap++ = ealg->desc; compose_sadb_supported() 2856 const struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); count_esp_combs() local 2857 if (!ealg) count_esp_combs() 2860 if (!ealg->pfkey_supported) count_esp_combs() 2863 if (!(ealg_tmpl_set(t, ealg) && ealg->available)) count_esp_combs() 2928 const struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); dump_esp_combs() local 2929 if (!ealg) dump_esp_combs() 2932 if (!ealg->pfkey_supported) dump_esp_combs() 2935 if (!(ealg_tmpl_set(t, ealg) && ealg->available)) dump_esp_combs() 2953 c->sadb_comb_encrypt = ealg->desc.sadb_alg_id; dump_esp_combs() 2954 c->sadb_comb_encrypt_minbits = ealg->desc.sadb_alg_minbits; dump_esp_combs() 2955 c->sadb_comb_encrypt_maxbits = ealg->desc.sadb_alg_maxbits; dump_esp_combs()
|
/linux-4.4.14/net/ipv4/ |
H A D | esp4.c | 596 if (!x->ealg) esp_init_authenc() 606 x->ealg->alg_name, esp_init_authenc() 614 x->ealg->alg_name, esp_init_authenc() 627 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); esp_init_authenc() 665 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); esp_init_authenc() 666 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); esp_init_authenc()
|
/linux-4.4.14/drivers/crypto/ |
H A D | geode-aes.c | 544 goto ealg; geode_aes_probe() 556 ealg: geode_aes_probe()
|
/linux-4.4.14/net/xfrm/ |
H A D | xfrm_state.c | 336 kfree(x->ealg); xfrm_state_gc_destroy() 1165 if (orig->ealg) { xfrm_state_clone() 1166 x->ealg = xfrm_algo_clone(orig->ealg); xfrm_state_clone() 1167 if (!x->ealg) xfrm_state_clone()
|
H A D | xfrm_user.c | 313 x->ealg = p; attach_crypt() 829 if (x->ealg) { copy_to_user_state_extra() 830 ret = nla_put(skb, XFRMA_ALG_CRYPT, xfrm_alg_len(x->ealg), x->ealg); copy_to_user_state_extra() 2599 if (x->ealg) xfrm_sa_len() 2600 l += nla_total_size(xfrm_alg_len(x->ealg)); xfrm_sa_len()
|
/linux-4.4.14/include/net/ |
H A D | xfrm.h | 168 struct xfrm_algo *ealg; member in struct:xfrm_state
|
Completed in 364 milliseconds