Home
last modified time | relevance | path

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

/Linux-v5.15/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-v5.15/net/ipv4/
Desp4.c1066 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()
1087 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1101 if (x->aalg) { in esp_init_authenc()
1104 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1105 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1107 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1114 x->aalg->alg_name, in esp_init_authenc()
1121 aead, x->aalg->alg_trunc_len / 8); in esp_init_authenc()
Dah4.c480 if (!x->aalg) in ah_init_state()
490 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah_init_state()
495 if (crypto_ahash_setkey(ahash, x->aalg->alg_key, in ah_init_state()
496 (x->aalg->alg_key_len + 7) / 8)) in ah_init_state()
505 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah_init_state()
511 __func__, x->aalg->alg_name, in ah_init_state()
518 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah_init_state()
/Linux-v5.15/net/ipv6/
Desp6.c1103 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1111 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1124 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
1138 if (x->aalg) { in esp_init_authenc()
1141 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
1142 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
1144 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1151 x->aalg->alg_name, in esp_init_authenc()
1158 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()
/Linux-v5.15/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.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-v5.15/net/xfrm/
Dxfrm_user.c602 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
606 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
976 if (x->aalg) { in copy_to_user_state_extra()
977 ret = copy_to_user_auth(x->aalg, skb); in copy_to_user_state_extra()
3036 if (x->aalg) { in xfrm_sa_len()
3038 (x->aalg->alg_key_len + 7) / 8); in xfrm_sa_len()
3039 l += nla_total_size(xfrm_alg_auth_len(x->aalg)); in xfrm_sa_len()
Dxfrm_state.c505 kfree(x->aalg); in ___xfrm_state_destroy()
1523 if (orig->aalg) { in xfrm_state_clone()
1524 x->aalg = xfrm_algo_auth_clone(orig->aalg); in xfrm_state_clone()
1525 if (!x->aalg) in xfrm_state_clone()
/Linux-v5.15/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1156 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
1160 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
/Linux-v5.15/include/net/
Dxfrm.h197 struct xfrm_algo_auth *aalg; member
/Linux-v5.15/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()