Home
last modified time | relevance | path

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

/linux-6.1.9/net/key/
Daf_key.c805 if (x->aalg && x->aalg->alg_key_len) { in __pfkey_xfrm_state2msg()
807 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8); in __pfkey_xfrm_state2msg()
853 if (x->aalg) { in __pfkey_xfrm_state2msg()
854 struct xfrm_algo_desc *a = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in __pfkey_xfrm_state2msg()
968 key->sadb_key_bits = x->aalg->alg_key_len; in __pfkey_xfrm_state2msg()
970 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
1177 x->aalg = kmalloc(sizeof(*x->aalg) + keysize, GFP_KERNEL); in pfkey_msg2xfrm_state()
1178 if (!x->aalg) { in pfkey_msg2xfrm_state()
1182 strcpy(x->aalg->alg_name, a->name); in pfkey_msg2xfrm_state()
1183 x->aalg->alg_key_len = 0; in pfkey_msg2xfrm_state()
[all …]
/linux-6.1.9/net/ipv4/
Desp4.c1064 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1074 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1091 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1105 if (x->aalg) { in esp_init_authenc()
1108 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1109 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1111 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1122 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah4.c480 if (!x->aalg) { in ah_init_state()
494 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah_init_state()
501 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah_init_state()
502 (x->aalg->alg_key_len + 7) / 8)) { in ah_init_state()
513 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah_init_state()
523 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah_init_state()
/linux-6.1.9/net/ipv6/
Desp6.c1107 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1117 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1134 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1148 if (x->aalg) { in esp_init_authenc()
1151 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1152 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1154 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1165 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah6.c675 if (!x->aalg) { in ah6_init_state()
689 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah6_init_state()
696 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah6_init_state()
697 (x->aalg->alg_key_len + 7) / 8)) { in ah6_init_state()
708 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah6_init_state()
718 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah6_init_state()
/linux-6.1.9/drivers/crypto/
Domap-aes.c1105 struct aead_alg *aalg; in omap_aes_probe() local
1212 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_probe()
1214 pr_debug("reg alg: %s\n", aalg->base.cra_name); in omap_aes_probe()
1216 err = crypto_register_aead(aalg); in omap_aes_probe()
1233 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_probe()
1234 crypto_unregister_aead(aalg); in omap_aes_probe()
1261 struct aead_alg *aalg; in omap_aes_remove() local
1276 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_remove()
1277 crypto_unregister_aead(aalg); in omap_aes_remove()
Dsa2ul.c104 int aalg; member
1463 cfg.aalg = ad->aalg_id; in sa_sha_setup()
1831 cfg.aalg = ad->aalg_id; in sa_aead_setkey()
/linux-6.1.9/net/xfrm/
Dxfrm_user.c699 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
703 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
1075 if (x->aalg) { in copy_to_user_state_extra()
1076 ret = copy_to_user_auth(x->aalg, skb); in copy_to_user_state_extra()
3178 if (x->aalg) { in xfrm_sa_len()
3180 (x->aalg->alg_key_len + 7) / 8); in xfrm_sa_len()
3181 l += nla_total_size(xfrm_alg_auth_len(x->aalg)); in xfrm_sa_len()
Dxfrm_state.c506 kfree(x->aalg); in ___xfrm_state_destroy()
1524 if (orig->aalg) { in xfrm_state_clone()
1525 x->aalg = xfrm_algo_auth_clone(orig->aalg); in xfrm_state_clone()
1526 if (!x->aalg) in xfrm_state_clone()
/linux-6.1.9/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1205 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
1209 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
/linux-6.1.9/include/net/
Dxfrm.h202 struct xfrm_algo_auth *aalg; member
/linux-6.1.9/drivers/crypto/bcm/
Dcipher.c4249 struct aead_alg *aalg = container_of(alg, struct aead_alg, base); in aead_cra_init() local
4250 struct iproc_alg_s *cipher_alg = container_of(aalg, struct iproc_alg_s, in aead_cra_init()