Home
last modified time | relevance | path

Searched refs:calg (Results 1 – 13 of 13) sorted by relevance

/linux-6.3-rc2/include/crypto/
A Dakcipher.h292 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_encrypt() local
296 crypto_stats_get(calg); in crypto_akcipher_encrypt()
298 crypto_stats_akcipher_encrypt(src_len, ret, calg); in crypto_akcipher_encrypt()
316 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_decrypt() local
320 crypto_stats_get(calg); in crypto_akcipher_decrypt()
340 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_sign() local
343 crypto_stats_get(calg); in crypto_akcipher_sign()
345 crypto_stats_akcipher_sign(ret, calg); in crypto_akcipher_sign()
367 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_verify() local
370 crypto_stats_get(calg); in crypto_akcipher_verify()
[all …]
A Dkpp.h290 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_set_secret() local
293 crypto_stats_get(calg); in crypto_kpp_set_secret()
295 crypto_stats_kpp_set_secret(calg, ret); in crypto_kpp_set_secret()
316 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_generate_public_key() local
319 crypto_stats_get(calg); in crypto_kpp_generate_public_key()
321 crypto_stats_kpp_generate_public_key(calg, ret); in crypto_kpp_generate_public_key()
339 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_compute_shared_secret() local
342 crypto_stats_get(calg); in crypto_kpp_compute_shared_secret()
344 crypto_stats_kpp_compute_shared_secret(calg, ret); in crypto_kpp_compute_shared_secret()
/linux-6.3-rc2/crypto/
A Dscompress.c188 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_scomp_ops_async() local
193 if (!crypto_mod_get(calg)) in crypto_init_scomp_ops_async()
196 scomp = crypto_create_tfm(calg, &crypto_scomp_type); in crypto_init_scomp_ops_async()
198 crypto_mod_put(calg); in crypto_init_scomp_ops_async()
A Dshash.c369 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_async() local
370 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async()
375 if (!crypto_mod_get(calg)) in crypto_init_shash_ops_async()
378 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_async()
380 crypto_mod_put(calg); in crypto_init_shash_ops_async()
/linux-6.3-rc2/net/xfrm/
A Dxfrm_ipcomp.c336 if (!x->calg) { in ipcomp_init_state()
355 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
360 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
A Dxfrm_user.c722 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
1100 if (x->calg) { in copy_to_user_state_extra()
1101 ret = nla_put(skb, XFRMA_ALG_COMP, sizeof(*(x->calg)), x->calg); in copy_to_user_state_extra()
3237 if (x->calg) in xfrm_sa_len()
3238 l += nla_total_size(sizeof(*x->calg)); in xfrm_sa_len()
A Dxfrm_state.c529 kfree(x->calg); in ___xfrm_state_destroy()
1696 if (orig->calg) { in xfrm_state_clone()
1697 x->calg = xfrm_algo_clone(orig->calg); in xfrm_state_clone()
1698 if (!x->calg) in xfrm_state_clone()
/linux-6.3-rc2/drivers/net/netdevsim/
A Dipsec.c147 if (xs->calg) { in nsim_ipsec_add_sa()
/linux-6.3-rc2/net/key/
A Daf_key.c859 BUG_ON(x->ealg && x->calg); in __pfkey_xfrm_state2msg()
866 if (x->calg) { in __pfkey_xfrm_state2msg()
867 struct xfrm_algo_desc *a = xfrm_calg_get_byname(x->calg->alg_name, 0); in __pfkey_xfrm_state2msg()
1199 x->calg = kmalloc(sizeof(*x->calg), GFP_KERNEL); in pfkey_msg2xfrm_state()
1200 if (!x->calg) { in pfkey_msg2xfrm_state()
1204 strcpy(x->calg->alg_name, a->name); in pfkey_msg2xfrm_state()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbevf/
A Dipsec.c292 if (xs->calg) { in ixgbevf_ipsec_add_sa()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ipsec.c597 if (xs->calg) { in ixgbe_ipsec_add_sa()
/linux-6.3-rc2/drivers/crypto/hisilicon/sec2/
A Dsec_crypto.c1204 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
1208 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
/linux-6.3-rc2/include/net/
A Dxfrm.h212 struct xfrm_algo *calg; member

Completed in 49 milliseconds