Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c1072 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1080 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1093 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1107 if (x->aalg) { in esp_init_authenc()
1110 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1111 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1113 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1120 x->aalg->alg_name, in esp_init_authenc()
1127 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()
/kernel/linux/linux-5.10/net/ipv6/
Desp6.c1114 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1122 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1135 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1149 if (x->aalg) { in esp_init_authenc()
1152 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1153 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1155 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1162 x->aalg->alg_name, in esp_init_authenc()
1169 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah6.c678 if (!x->aalg) in ah6_init_state()
688 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah6_init_state()
693 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah6_init_state()
694 (x->aalg->alg_key_len + 7) / 8)) in ah6_init_state()
703 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah6_init_state()
709 x->aalg->alg_name, crypto_ahash_digestsize(ahash), in ah6_init_state()
715 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah6_init_state()
/kernel/linux/linux-5.10/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
1279 aalg = &dd->pdata->aead_algs_info->algs_list[i]; in omap_aes_remove()
1280 crypto_unregister_aead(aalg); in omap_aes_remove()
Dsa2ul.c85 int aalg; member
1441 cfg.aalg = ad->aalg_id; in sa_sha_setup()
1811 cfg.aalg = ad->aalg_id; in sa_aead_setkey()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_user.c610 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
614 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
926 if (x->aalg) { in copy_to_user_state_extra()
927 ret = copy_to_user_auth(x->aalg, skb); in copy_to_user_state_extra()
930 xfrm_alg_auth_len(x->aalg), x->aalg); in copy_to_user_state_extra()
2904 if (x->aalg) { in xfrm_sa_len()
2906 (x->aalg->alg_key_len + 7) / 8); in xfrm_sa_len()
2907 l += nla_total_size(xfrm_alg_auth_len(x->aalg)); in xfrm_sa_len()
Dxfrm_state.c484 kfree(x->aalg); in ___xfrm_state_destroy()
1487 if (orig->aalg) { in xfrm_state_clone()
1488 x->aalg = xfrm_algo_auth_clone(orig->aalg); in xfrm_state_clone()
1489 if (!x->aalg) in xfrm_state_clone()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c923 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
927 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
/kernel/linux/linux-5.10/include/net/
Dxfrm.h190 struct xfrm_algo_auth *aalg; member
/kernel/linux/linux-5.10/drivers/crypto/bcm/
Dcipher.c4251 struct aead_alg *aalg = container_of(alg, struct aead_alg, base); in aead_cra_init() local
4252 struct iproc_alg_s *cipher_alg = container_of(aalg, struct iproc_alg_s, in aead_cra_init()