Searched refs:calg (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/crypto/ |
D | scompress.c | 211 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_scomp_ops_async() local 216 if (!crypto_mod_get(calg)) in crypto_init_scomp_ops_async() 219 scomp = crypto_create_tfm(calg, &crypto_scomp_type); in crypto_init_scomp_ops_async() 221 crypto_mod_put(calg); in crypto_init_scomp_ops_async()
|
D | skcipher.c | 652 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_skcipher_ops_blkcipher() local 658 if (!crypto_mod_get(calg)) in crypto_init_skcipher_ops_blkcipher() 661 btfm = __crypto_alloc_tfm(calg, CRYPTO_ALG_TYPE_BLKCIPHER, in crypto_init_skcipher_ops_blkcipher() 664 crypto_mod_put(calg); in crypto_init_skcipher_ops_blkcipher() 677 skcipher->keysize = calg->cra_blkcipher.max_keysize; in crypto_init_skcipher_ops_blkcipher() 750 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_skcipher_ops_ablkcipher() local 756 if (!crypto_mod_get(calg)) in crypto_init_skcipher_ops_ablkcipher() 759 abtfm = __crypto_alloc_tfm(calg, 0, 0); in crypto_init_skcipher_ops_ablkcipher() 761 crypto_mod_put(calg); in crypto_init_skcipher_ops_ablkcipher() 776 skcipher->keysize = calg->cra_ablkcipher.max_keysize; in crypto_init_skcipher_ops_ablkcipher()
|
D | shash.c | 348 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_async() local 349 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() 354 if (!crypto_mod_get(calg)) in crypto_init_shash_ops_async() 357 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_async() 359 crypto_mod_put(calg); in crypto_init_shash_ops_async()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_ipcomp.c | 348 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()
|
D | xfrm_state.c | 436 kfree(x->calg); in xfrm_state_gc_destroy() 1365 if (orig->calg) { in xfrm_state_clone() 1366 x->calg = xfrm_algo_clone(orig->calg); in xfrm_state_clone() 1367 if (!x->calg) in xfrm_state_clone()
|
D | xfrm_user.c | 577 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct() 905 if (x->calg) { in copy_to_user_state_extra() 906 ret = nla_put(skb, XFRMA_ALG_COMP, sizeof(*(x->calg)), x->calg); in copy_to_user_state_extra() 2782 if (x->calg) in xfrm_sa_len() 2783 l += nla_total_size(sizeof(*x->calg)); in xfrm_sa_len()
|
/Linux-v4.19/drivers/net/netdevsim/ |
D | ipsec.c | 147 if (xs->calg) { in nsim_ipsec_add_sa()
|
/Linux-v4.19/net/key/ |
D | af_key.c | 877 BUG_ON(x->ealg && x->calg); in __pfkey_xfrm_state2msg() 884 if (x->calg) { in __pfkey_xfrm_state2msg() 885 struct xfrm_algo_desc *a = xfrm_calg_get_byname(x->calg->alg_name, 0); in __pfkey_xfrm_state2msg() 1219 x->calg = kmalloc(sizeof(*x->calg), GFP_KERNEL); in pfkey_msg2xfrm_state() 1220 if (!x->calg) { in pfkey_msg2xfrm_state() 1224 strcpy(x->calg->alg_name, a->name); in pfkey_msg2xfrm_state()
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 568 if (xs->calg) { in ixgbe_ipsec_add_sa()
|
/Linux-v4.19/include/net/ |
D | xfrm.h | 179 struct xfrm_algo *calg; member
|