Home
last modified time | relevance | path

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

/linux-6.15/crypto/
H A Dscompress.c333 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_scomp_ops_async() local
338 if (!crypto_mod_get(calg)) in crypto_init_scomp_ops_async()
341 scomp = crypto_create_tfm(calg, &crypto_scomp_type); in crypto_init_scomp_ops_async()
343 crypto_mod_put(calg); in crypto_init_scomp_ops_async()
379 struct crypto_alg *base = &alg->calg.base; in scomp_prepare_alg()
381 comp_prepare_alg(&alg->calg); in scomp_prepare_alg()
388 struct crypto_alg *base = &alg->calg.base; in crypto_register_scomp()
H A Dlskcipher.c309 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_lskcipher_ops_sg() local
312 if (!crypto_mod_get(calg)) in crypto_init_lskcipher_ops_sg()
315 skcipher = crypto_create_tfm(calg, &crypto_lskcipher_type); in crypto_init_lskcipher_ops_sg()
317 crypto_mod_put(calg); in crypto_init_lskcipher_ops_sg()
H A Dacompress.c31 return container_of(alg, struct acomp_alg, calg.base); in __crypto_acomp_alg()
391 struct crypto_alg *base = &alg->calg.base; in crypto_register_acomp()
393 comp_prepare_alg(&alg->calg); in crypto_register_acomp()
H A Dahash.c249 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_ahash_using_shash() local
254 if (!crypto_mod_get(calg)) in crypto_init_ahash_using_shash()
257 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_ahash_using_shash()
259 crypto_mod_put(calg); in crypto_init_ahash_using_shash()
/linux-6.15/net/xfrm/
H A Dxfrm_ipcomp.c329 if (!x->calg) { in ipcomp_init_state()
344 ipcd->tfm = crypto_alloc_acomp(x->calg->alg_name, 0, 0); in ipcomp_init_state()
348 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
H A Dxfrm_user.c894 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
1244 static int copy_to_user_calg(struct xfrm_algo *calg, struct sk_buff *skb) in copy_to_user_calg() argument
1246 struct nlattr *nla = nla_reserve(skb, XFRMA_ALG_COMP, sizeof(*calg)); in copy_to_user_calg()
1253 strscpy_pad(ap->alg_name, calg->alg_name, sizeof(ap->alg_name)); in copy_to_user_calg()
1332 if (x->calg) { in copy_to_user_state_extra()
1333 ret = copy_to_user_calg(x->calg, skb); in copy_to_user_state_extra()
3603 if (x->calg) in xfrm_sa_len()
3604 l += nla_total_size(sizeof(*x->calg)); in xfrm_sa_len()
H A Dxfrm_state.c605 kfree(x->calg); in ___xfrm_state_destroy()
1998 if (orig->calg) { in xfrm_state_clone()
1999 x->calg = xfrm_algo_clone(orig->calg); in xfrm_state_clone()
2000 if (!x->calg) in xfrm_state_clone()
/linux-6.15/include/crypto/internal/
H A Dscompress.h44 struct comp_alg_common calg; member
H A Dacompress.h53 struct comp_alg_common calg; member
/linux-6.15/drivers/net/netdevsim/
H A Dipsec.c151 if (xs->calg) { in nsim_ipsec_add_sa()
/linux-6.15/net/key/
H 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.15/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c292 if (xs->calg) { in ixgbevf_ipsec_add_sa()
/linux-6.15/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.c597 if (xs->calg) { in ixgbe_ipsec_add_sa()
/linux-6.15/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1185 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, cmode) \ argument
1188 return sec_aead_setkey(tfm, key, keylen, aalg, calg, cmode); \
/linux-6.15/include/net/
H A Dxfrm.h228 struct xfrm_algo *calg; member