Home
last modified time | relevance | path

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

/linux-4.1.27/crypto/
Dshash.c334 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_async() local
335 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async()
340 if (!crypto_mod_get(calg)) in crypto_init_shash_ops_async()
343 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_async()
345 crypto_mod_put(calg); in crypto_init_shash_ops_async()
458 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_compat() local
459 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_compat()
464 if (!crypto_mod_get(calg)) in crypto_init_shash_ops_compat()
467 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_compat()
469 crypto_mod_put(calg); in crypto_init_shash_ops_compat()
/linux-4.1.27/net/xfrm/
Dxfrm_ipcomp.c348 if (!x->calg) in ipcomp_init_state()
363 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
368 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
Dxfrm_state.c337 kfree(x->calg); in xfrm_state_gc_destroy()
1172 if (orig->calg) { in xfrm_state_clone()
1173 x->calg = xfrm_algo_clone(orig->calg); in xfrm_state_clone()
1174 if (!x->calg) in xfrm_state_clone()
Dxfrm_user.c533 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
809 if (x->calg) { in copy_to_user_state_extra()
810 ret = nla_put(skb, XFRMA_ALG_COMP, sizeof(*(x->calg)), x->calg); in copy_to_user_state_extra()
2576 if (x->calg) in xfrm_sa_len()
2577 l += nla_total_size(sizeof(*x->calg)); in xfrm_sa_len()
/linux-4.1.27/net/key/
Daf_key.c820 BUG_ON(x->ealg && x->calg); in __pfkey_xfrm_state2msg()
827 if (x->calg) { in __pfkey_xfrm_state2msg()
828 struct xfrm_algo_desc *a = xfrm_calg_get_byname(x->calg->alg_name, 0); in __pfkey_xfrm_state2msg()
1168 x->calg = kmalloc(sizeof(*x->calg), GFP_KERNEL); in pfkey_msg2xfrm_state()
1169 if (!x->calg) in pfkey_msg2xfrm_state()
1171 strcpy(x->calg->alg_name, a->name); in pfkey_msg2xfrm_state()
/linux-4.1.27/include/net/
Dxfrm.h169 struct xfrm_algo *calg; member