Searched refs:aalg (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/net/ipv6/
H A Desp6.c547 x->aalg ? x->aalg->alg_name : "digest_null", esp_init_authenc()
555 x->aalg ? x->aalg->alg_name : "digest_null", esp_init_authenc()
568 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + esp_init_authenc()
582 if (x->aalg) { esp_init_authenc()
585 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); esp_init_authenc()
586 p += (x->aalg->alg_key_len + 7) / 8; esp_init_authenc()
588 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); esp_init_authenc()
595 x->aalg->alg_name, esp_init_authenc()
602 aead, x->aalg->alg_trunc_len / 8); esp_init_authenc()
H A Dah6.c679 if (!x->aalg) ah6_init_state()
689 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); ah6_init_state()
694 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, ah6_init_state()
695 (x->aalg->alg_key_len + 7) / 8)) ah6_init_state()
704 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); ah6_init_state()
710 x->aalg->alg_name, crypto_ahash_digestsize(ahash), ah6_init_state()
716 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; ah6_init_state()
/linux-4.4.14/net/ipv4/
H A Desp4.c605 x->aalg ? x->aalg->alg_name : "digest_null", esp_init_authenc()
613 x->aalg ? x->aalg->alg_name : "digest_null", esp_init_authenc()
626 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + esp_init_authenc()
640 if (x->aalg) { esp_init_authenc()
643 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); esp_init_authenc()
644 p += (x->aalg->alg_key_len + 7) / 8; esp_init_authenc()
646 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); esp_init_authenc()
653 x->aalg->alg_name, esp_init_authenc()
660 aead, x->aalg->alg_trunc_len / 8); esp_init_authenc()
H A Dah4.c470 if (!x->aalg) ah_init_state()
480 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); ah_init_state()
485 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, ah_init_state()
486 (x->aalg->alg_key_len + 7) / 8)) ah_init_state()
495 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); ah_init_state()
501 __func__, x->aalg->alg_name, ah_init_state()
508 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; ah_init_state()
/linux-4.4.14/net/key/
H A Daf_key.c766 if (x->aalg && x->aalg->alg_key_len) { __pfkey_xfrm_state2msg()
768 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8); __pfkey_xfrm_state2msg()
814 if (x->aalg) { __pfkey_xfrm_state2msg()
815 struct xfrm_algo_desc *a = xfrm_aalg_get_byname(x->aalg->alg_name, 0); __pfkey_xfrm_state2msg()
937 key->sadb_key_bits = x->aalg->alg_key_len; __pfkey_xfrm_state2msg()
939 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); __pfkey_xfrm_state2msg()
1148 x->aalg = kmalloc(sizeof(*x->aalg) + keysize, GFP_KERNEL); pfkey_msg2xfrm_state()
1149 if (!x->aalg) pfkey_msg2xfrm_state()
1151 strcpy(x->aalg->alg_name, a->name); pfkey_msg2xfrm_state()
1152 x->aalg->alg_key_len = 0; pfkey_msg2xfrm_state()
1154 x->aalg->alg_key_len = key->sadb_key_bits; pfkey_msg2xfrm_state()
1155 memcpy(x->aalg->alg_key, key+1, keysize); pfkey_msg2xfrm_state()
1157 x->aalg->alg_trunc_len = a->uinfo.auth.icv_truncbits; pfkey_msg2xfrm_state()
1614 struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(i); compose_sadb_supported() local
1615 if (!aalg) compose_sadb_supported()
1617 if (!aalg->pfkey_supported) compose_sadb_supported()
1619 if (aalg->available) compose_sadb_supported()
1620 *ap++ = aalg->desc; compose_sadb_supported()
2840 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(i); count_ah_combs() local
2841 if (!aalg) count_ah_combs()
2843 if (!aalg->pfkey_supported) count_ah_combs()
2845 if (aalg_tmpl_set(t, aalg) && aalg->available) count_ah_combs()
2867 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); count_esp_combs() local
2868 if (!aalg) count_esp_combs()
2871 if (!aalg->pfkey_supported) count_esp_combs()
2874 if (aalg_tmpl_set(t, aalg) && aalg->available) count_esp_combs()
2893 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(i); dump_ah_combs() local
2894 if (!aalg) dump_ah_combs()
2897 if (!aalg->pfkey_supported) dump_ah_combs()
2900 if (aalg_tmpl_set(t, aalg) && aalg->available) { dump_ah_combs()
2905 c->sadb_comb_auth = aalg->desc.sadb_alg_id; dump_ah_combs()
2906 c->sadb_comb_auth_minbits = aalg->desc.sadb_alg_minbits; dump_ah_combs()
2907 c->sadb_comb_auth_maxbits = aalg->desc.sadb_alg_maxbits; dump_ah_combs()
2940 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); dump_esp_combs() local
2941 if (!aalg) dump_esp_combs()
2943 if (!aalg->pfkey_supported) dump_esp_combs()
2945 if (!(aalg_tmpl_set(t, aalg) && aalg->available)) dump_esp_combs()
2950 c->sadb_comb_auth = aalg->desc.sadb_alg_id; dump_esp_combs()
2951 c->sadb_comb_auth_minbits = aalg->desc.sadb_alg_minbits; dump_esp_combs()
2952 c->sadb_comb_auth_maxbits = aalg->desc.sadb_alg_maxbits; dump_esp_combs()
/linux-4.4.14/net/xfrm/
H A Dxfrm_user.c546 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, xfrm_state_construct()
550 if ((err = attach_auth(&x->aalg, &x->props.aalgo, xfrm_state_construct()
821 if (x->aalg) { copy_to_user_state_extra()
822 ret = copy_to_user_auth(x->aalg, skb); copy_to_user_state_extra()
825 xfrm_alg_auth_len(x->aalg), x->aalg); copy_to_user_state_extra()
2594 if (x->aalg) { xfrm_sa_len()
2596 (x->aalg->alg_key_len + 7) / 8); xfrm_sa_len()
2597 l += nla_total_size(xfrm_alg_auth_len(x->aalg)); xfrm_sa_len()
H A Dxfrm_state.c335 kfree(x->aalg); xfrm_state_gc_destroy()
1153 if (orig->aalg) { xfrm_state_clone()
1154 x->aalg = xfrm_algo_auth_clone(orig->aalg); xfrm_state_clone()
1155 if (!x->aalg) xfrm_state_clone()
/linux-4.4.14/include/net/
H A Dxfrm.h167 struct xfrm_algo_auth *aalg; member in struct:xfrm_state

Completed in 242 milliseconds