Lines Matching refs:tfm
75 struct crypto_shash *tfm; in chap_test_algorithm() local
77 tfm = crypto_alloc_shash(name, 0, 0); in chap_test_algorithm()
78 if (IS_ERR(tfm)) in chap_test_algorithm()
81 crypto_free_shash(tfm); in chap_test_algorithm()
259 struct crypto_shash *tfm = NULL; in chap_server_compute_hash() local
356 tfm = crypto_alloc_shash(chap->digest_name, 0, 0); in chap_server_compute_hash()
357 if (IS_ERR(tfm)) { in chap_server_compute_hash()
358 tfm = NULL; in chap_server_compute_hash()
363 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); in chap_server_compute_hash()
369 desc->tfm = tfm; in chap_server_compute_hash()
560 if (tfm) in chap_server_compute_hash()
561 crypto_free_shash(tfm); in chap_server_compute_hash()