Lines Matching refs:tfm
250 struct algif_hash_tfm *tfm; in hash_check_key() local
260 tfm = pask->private; in hash_check_key()
264 if (!tfm->has_key) in hash_check_key()
355 struct algif_hash_tfm *tfm; in hash_bind() local
358 tfm = kzalloc(sizeof(*tfm), GFP_KERNEL); in hash_bind()
359 if (!tfm) in hash_bind()
364 kfree(tfm); in hash_bind()
368 tfm->hash = hash; in hash_bind()
370 return tfm; in hash_bind()
375 struct algif_hash_tfm *tfm = private; in hash_release() local
377 crypto_free_ahash(tfm->hash); in hash_release()
378 kfree(tfm); in hash_release()
383 struct algif_hash_tfm *tfm = private; in hash_setkey() local
386 err = crypto_ahash_setkey(tfm->hash, key, keylen); in hash_setkey()
387 tfm->has_key = !err; in hash_setkey()
407 struct algif_hash_tfm *tfm = private; in hash_accept_parent_nokey() local
408 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey()
441 struct algif_hash_tfm *tfm = private; in hash_accept_parent() local
443 if (!tfm->has_key && crypto_ahash_has_setkey(tfm->hash)) in hash_accept_parent()