Home
last modified time | relevance | path

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

/openbmc/linux/crypto/
H A Dscompress.c187 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_scomp_ops_async() local
192 if (!crypto_mod_get(calg)) in crypto_init_scomp_ops_async()
195 scomp = crypto_create_tfm(calg, &crypto_scomp_type); in crypto_init_scomp_ops_async()
197 crypto_mod_put(calg); in crypto_init_scomp_ops_async()
263 struct crypto_alg *base = &alg->calg.base; in crypto_register_scomp()
265 comp_prepare_alg(&alg->calg); in crypto_register_scomp()
H A Dacompress.c28 return container_of(alg, struct acomp_alg, calg.base); in __crypto_acomp_alg()
99 struct comp_alg_common *calg = __crypto_comp_alg_common(alg); in __crypto_acomp_report_stat() local
100 struct crypto_istat_compress *istat = comp_get_stat(calg); in __crypto_acomp_report_stat()
198 struct crypto_alg *base = &alg->calg.base; in crypto_register_acomp()
200 comp_prepare_alg(&alg->calg); in crypto_register_acomp()
H A Dakcipher.c292 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_akcipher_ops_sig() local
295 if (!crypto_mod_get(calg)) in crypto_init_akcipher_ops_sig()
298 akcipher = crypto_create_tfm(calg, &crypto_akcipher_type); in crypto_init_akcipher_ops_sig()
300 crypto_mod_put(calg); in crypto_init_akcipher_ops_sig()
H A Dshash.c411 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_async() local
412 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async()
417 if (!crypto_mod_get(calg)) in crypto_init_shash_ops_async()
420 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_async()
422 crypto_mod_put(calg); in crypto_init_shash_ops_async()
/openbmc/linux/net/xfrm/
H A Dxfrm_ipcomp.c333 if (!x->calg) { in ipcomp_init_state()
352 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
357 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
H A Dxfrm_user.c726 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
1057 static int copy_to_user_calg(struct xfrm_algo *calg, struct sk_buff *skb) in copy_to_user_calg() argument
1059 struct nlattr *nla = nla_reserve(skb, XFRMA_ALG_COMP, sizeof(*calg)); in copy_to_user_calg()
1066 strscpy_pad(ap->alg_name, calg->alg_name, sizeof(ap->alg_name)); in copy_to_user_calg()
1145 if (x->calg) { in copy_to_user_state_extra()
1146 ret = copy_to_user_calg(x->calg, skb); in copy_to_user_state_extra()
3300 if (x->calg) in xfrm_sa_len()
3301 l += nla_total_size(sizeof(*x->calg)); in xfrm_sa_len()
H A Dxfrm_state.c531 kfree(x->calg); in ___xfrm_state_destroy()
1750 if (orig->calg) { in xfrm_state_clone()
1751 x->calg = xfrm_algo_clone(orig->calg); in xfrm_state_clone()
1752 if (!x->calg) in xfrm_state_clone()
/openbmc/linux/include/crypto/internal/
H A Dacompress.h49 struct comp_alg_common calg; member
H A Dscompress.h46 struct comp_alg_common calg; member
/openbmc/linux/drivers/net/netdevsim/
H A Dipsec.c151 if (xs->calg) { in nsim_ipsec_add_sa()
/openbmc/linux/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()
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c292 if (xs->calg) { in ixgbevf_ipsec_add_sa()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.c597 if (xs->calg) { in ixgbe_ipsec_add_sa()
/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1202 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, cmode) \ argument
1205 return sec_aead_setkey(tfm, key, keylen, aalg, calg, cmode); \
/openbmc/linux/include/net/
H A Dxfrm.h220 struct xfrm_algo *calg; member