Lines Matching refs:tfm
69 struct crypto_shash *tfm; in kdf_alloc() local
72 tfm = crypto_alloc_shash(hashname, 0, 0); in kdf_alloc()
73 if (IS_ERR(tfm)) { in kdf_alloc()
75 return PTR_ERR(tfm); in kdf_alloc()
78 if (crypto_shash_digestsize(tfm) == 0) { in kdf_alloc()
79 crypto_free_shash(tfm); in kdf_alloc()
83 *hash = tfm; in kdf_alloc()
134 struct crypto_kpp *tfm; in __keyctl_dh_compute() local
210 tfm = crypto_alloc_kpp("dh", 0, 0); in __keyctl_dh_compute()
211 if (IS_ERR(tfm)) { in __keyctl_dh_compute()
212 ret = PTR_ERR(tfm); in __keyctl_dh_compute()
216 ret = crypto_kpp_set_secret(tfm, secret, secretlen); in __keyctl_dh_compute()
220 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute()
245 req = kpp_request_alloc(tfm, GFP_KERNEL); in __keyctl_dh_compute()
290 crypto_free_kpp(tfm); in __keyctl_dh_compute()