Lines Matching refs:tfm
242 struct algif_hash_tfm *tfm; in hash_check_key() local
252 tfm = pask->private; in hash_check_key()
256 if (!tfm->has_key) in hash_check_key()
347 struct algif_hash_tfm *tfm; in hash_bind() local
350 tfm = kzalloc(sizeof(*tfm), GFP_KERNEL); in hash_bind()
351 if (!tfm) in hash_bind()
356 kfree(tfm); in hash_bind()
360 tfm->hash = hash; in hash_bind()
362 return tfm; in hash_bind()
367 struct algif_hash_tfm *tfm = private; in hash_release() local
369 crypto_free_ahash(tfm->hash); in hash_release()
370 kfree(tfm); in hash_release()
375 struct algif_hash_tfm *tfm = private; in hash_setkey() local
378 err = crypto_ahash_setkey(tfm->hash, key, keylen); in hash_setkey()
379 tfm->has_key = !err; in hash_setkey()
399 struct algif_hash_tfm *tfm = private; in hash_accept_parent_nokey() local
400 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey()
433 struct algif_hash_tfm *tfm = private; in hash_accept_parent() local
435 if (!tfm->has_key && crypto_ahash_has_setkey(tfm->hash)) in hash_accept_parent()