Home
last modified time | relevance | path

Searched refs:aalg (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/net/ipv6/
Desp6.c777 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
785 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
798 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
812 if (x->aalg) { in esp_init_authenc()
815 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
816 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
818 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
825 x->aalg->alg_name, in esp_init_authenc()
832 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah6.c677 if (!x->aalg) in ah6_init_state()
687 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah6_init_state()
692 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah6_init_state()
693 (x->aalg->alg_key_len + 7) / 8)) in ah6_init_state()
702 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah6_init_state()
708 x->aalg->alg_name, crypto_ahash_digestsize(ahash), in ah6_init_state()
714 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah6_init_state()
/Linux-v5.4/net/ipv4/
Desp4.c882 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
890 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
903 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
917 if (x->aalg) { in esp_init_authenc()
920 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
921 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
923 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
930 x->aalg->alg_name, in esp_init_authenc()
937 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah4.c479 if (!x->aalg) in ah_init_state()
489 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah_init_state()
494 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah_init_state()
495 (x->aalg->alg_key_len + 7) / 8)) in ah_init_state()
504 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah_init_state()
510 __func__, x->aalg->alg_name, in ah_init_state()
517 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah_init_state()
/Linux-v5.4/net/key/
Daf_key.c809 if (x->aalg && x->aalg->alg_key_len) { in __pfkey_xfrm_state2msg()
811 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8); in __pfkey_xfrm_state2msg()
857 if (x->aalg) { in __pfkey_xfrm_state2msg()
858 struct xfrm_algo_desc *a = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in __pfkey_xfrm_state2msg()
972 key->sadb_key_bits = x->aalg->alg_key_len; in __pfkey_xfrm_state2msg()
974 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
1181 x->aalg = kmalloc(sizeof(*x->aalg) + keysize, GFP_KERNEL); in pfkey_msg2xfrm_state()
1182 if (!x->aalg) { in pfkey_msg2xfrm_state()
1186 strcpy(x->aalg->alg_name, a->name); in pfkey_msg2xfrm_state()
1187 x->aalg->alg_key_len = 0; in pfkey_msg2xfrm_state()
[all …]
/Linux-v5.4/drivers/crypto/
Domap-aes.c1125 struct aead_alg *aalg; in omap_aes_probe() local
1232 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_probe()
1233 algp = &aalg->base; in omap_aes_probe()
1237 err = crypto_register_aead(aalg); in omap_aes_probe()
1254 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_probe()
1255 crypto_unregister_aead(aalg); in omap_aes_probe()
1281 struct aead_alg *aalg; in omap_aes_remove() local
1297 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_remove()
1298 crypto_unregister_aead(aalg); in omap_aes_remove()
/Linux-v5.4/net/xfrm/
Dxfrm_user.c587 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
591 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
912 if (x->aalg) { in copy_to_user_state_extra()
913 ret = copy_to_user_auth(x->aalg, skb); in copy_to_user_state_extra()
916 xfrm_alg_auth_len(x->aalg), x->aalg); in copy_to_user_state_extra()
2786 if (x->aalg) { in xfrm_sa_len()
2788 (x->aalg->alg_key_len + 7) / 8); in xfrm_sa_len()
2789 l += nla_total_size(xfrm_alg_auth_len(x->aalg)); in xfrm_sa_len()
Dxfrm_state.c485 kfree(x->aalg); in ___xfrm_state_destroy()
1458 if (orig->aalg) { in xfrm_state_clone()
1459 x->aalg = xfrm_algo_auth_clone(orig->aalg); in xfrm_state_clone()
1460 if (!x->aalg) in xfrm_state_clone()
/Linux-v5.4/include/net/
Dxfrm.h188 struct xfrm_algo_auth *aalg; member
/Linux-v5.4/drivers/crypto/bcm/
Dcipher.c4325 struct aead_alg *aalg = container_of(alg, struct aead_alg, base); in aead_cra_init() local
4326 struct iproc_alg_s *cipher_alg = container_of(aalg, struct iproc_alg_s, in aead_cra_init()