Searched refs:calg (Results 1 - 16 of 16) sorted by relevance

/linux-master/crypto/
H A Dacompress.c28 return container_of(alg, struct acomp_alg, calg.base);
99 struct comp_alg_common *calg = __crypto_comp_alg_common(alg); local
100 struct crypto_istat_compress *istat = comp_get_stat(calg);
198 struct crypto_alg *base = &alg->calg.base;
200 comp_prepare_alg(&alg->calg);
H A Dscompress.c209 struct crypto_alg *calg = tfm->__crt_alg; local
214 if (!crypto_mod_get(calg))
217 scomp = crypto_create_tfm(calg, &crypto_scomp_type);
219 crypto_mod_put(calg);
285 struct crypto_alg *base = &alg->calg.base;
287 comp_prepare_alg(&alg->calg);
H A Dakcipher.c292 struct crypto_alg *calg = tfm->__crt_alg; local
295 if (!crypto_mod_get(calg))
298 akcipher = crypto_create_tfm(calg, &crypto_akcipher_type);
300 crypto_mod_put(calg);
H A Dlskcipher.c374 struct crypto_alg *calg = tfm->__crt_alg; local
377 if (!crypto_mod_get(calg))
380 skcipher = crypto_create_tfm(calg, &crypto_lskcipher_type);
382 crypto_mod_put(calg);
H A Dahash.c131 struct crypto_alg *calg = tfm->__crt_alg; local
136 if (!crypto_mod_get(calg))
139 shash = crypto_create_tfm(calg, &crypto_shash_type);
141 crypto_mod_put(calg);
/linux-master/include/crypto/internal/
H A Dacompress.h36 * @calg: Cmonn algorithm data structure shared with scomp
49 struct comp_alg_common calg; member in union:acomp_alg::__anon2782
H A Dscompress.h32 * @calg: Cmonn algorithm data structure shared with acomp
46 struct comp_alg_common calg; member in union:scomp_alg::__anon2787
/linux-master/net/xfrm/
H A Dxfrm_ipcomp.c333 if (!x->calg) {
352 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name);
357 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0);
H A Dxfrm_user.c722 if ((err = attach_one_algo(&x->calg, &x->props.calgo,
1051 static int copy_to_user_calg(struct xfrm_algo *calg, struct sk_buff *skb) argument
1053 struct nlattr *nla = nla_reserve(skb, XFRMA_ALG_COMP, sizeof(*calg));
1060 strscpy_pad(ap->alg_name, calg->alg_name, sizeof(ap->alg_name));
1139 if (x->calg) {
1140 ret = copy_to_user_calg(x->calg, skb);
3295 if (x->calg)
3296 l += nla_total_size(sizeof(*x->calg));
H A Dxfrm_state.c529 kfree(x->calg);
1693 if (orig->calg) {
1694 x->calg = xfrm_algo_clone(orig->calg);
1695 if (!x->calg)
/linux-master/drivers/net/netdevsim/
H A Dipsec.c147 if (xs->calg) {
/linux-master/net/key/
H A Daf_key.c859 BUG_ON(x->ealg && x->calg);
865 /* KAME compatible: sadb_sa_encrypt is overloaded with calg id */
866 if (x->calg) {
867 struct xfrm_algo_desc *a = xfrm_calg_get_byname(x->calg->alg_name, 0);
1199 x->calg = kmalloc(sizeof(*x->calg), GFP_KERNEL);
1200 if (!x->calg) {
1204 strcpy(x->calg->alg_name, a->name);
/linux-master/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c292 if (xs->calg) {
/linux-master/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1203 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \
1207 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.c597 if (xs->calg) {
/linux-master/include/net/
H A Dxfrm.h219 struct xfrm_algo *calg; member in struct:xfrm_state

Completed in 161 milliseconds