Searched refs:ealg (Results 1 - 7 of 7) sorted by relevance
/linux-4.1.27/net/ipv4/ |
H A D | esp4.c | 557 if (!x->ealg) esp_init_authenc() 566 x->ealg->alg_name) >= CRYPTO_MAX_ALG_NAME) esp_init_authenc() 572 x->ealg->alg_name) >= CRYPTO_MAX_ALG_NAME) esp_init_authenc() 584 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); esp_init_authenc() 622 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); esp_init_authenc() 623 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); esp_init_authenc()
|
/linux-4.1.27/net/ipv6/ |
H A D | esp6.c | 499 if (!x->ealg) esp_init_authenc() 508 x->ealg->alg_name) >= CRYPTO_MAX_ALG_NAME) esp_init_authenc() 514 x->ealg->alg_name) >= CRYPTO_MAX_ALG_NAME) esp_init_authenc() 526 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); esp_init_authenc() 564 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); esp_init_authenc() 565 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); esp_init_authenc()
|
/linux-4.1.27/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() 1634 struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); compose_sadb_supported() local 1635 if (!ealg) compose_sadb_supported() 1637 if (!ealg->pfkey_supported) compose_sadb_supported() 1639 if (ealg->available) compose_sadb_supported() 1640 *ap++ = ealg->desc; compose_sadb_supported() 2855 const struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); count_esp_combs() local 2856 if (!ealg) count_esp_combs() 2859 if (!ealg->pfkey_supported) count_esp_combs() 2862 if (!(ealg_tmpl_set(t, ealg) && ealg->available)) count_esp_combs() 2927 const struct xfrm_algo_desc *ealg = xfrm_ealg_get_byidx(i); dump_esp_combs() local 2928 if (!ealg) dump_esp_combs() 2931 if (!ealg->pfkey_supported) dump_esp_combs() 2934 if (!(ealg_tmpl_set(t, ealg) && ealg->available)) dump_esp_combs() 2952 c->sadb_comb_encrypt = ealg->desc.sadb_alg_id; dump_esp_combs() 2953 c->sadb_comb_encrypt_minbits = ealg->desc.sadb_alg_minbits; dump_esp_combs() 2954 c->sadb_comb_encrypt_maxbits = ealg->desc.sadb_alg_maxbits; dump_esp_combs()
|
/linux-4.1.27/drivers/crypto/ |
H A D | geode-aes.c | 544 goto ealg; geode_aes_probe() 556 ealg: geode_aes_probe()
|
/linux-4.1.27/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 | 529 if ((err = attach_one_algo(&x->ealg, &x->props.ealgo, xfrm_state_construct() 804 if (x->ealg) { copy_to_user_state_extra() 805 ret = nla_put(skb, XFRMA_ALG_CRYPT, xfrm_alg_len(x->ealg), x->ealg); copy_to_user_state_extra() 2574 if (x->ealg) xfrm_sa_len() 2575 l += nla_total_size(xfrm_alg_len(x->ealg)); xfrm_sa_len()
|
/linux-4.1.27/include/net/ |
H A D | xfrm.h | 168 struct xfrm_algo *ealg; member in struct:xfrm_state
|
Completed in 246 milliseconds