Lines Matching refs:tfm

181 	walk->alignmask = crypto_hash_alignmask(hdesc->tfm);  in crypto_hash_walk_first_compat()
188 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned() argument
191 unsigned long alignmask = crypto_ahash_alignmask(tfm); in ahash_setkey_unaligned()
203 ret = tfm->setkey(tfm, alignbuffer, keylen); in ahash_setkey_unaligned()
208 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey() argument
211 unsigned long alignmask = crypto_ahash_alignmask(tfm); in crypto_ahash_setkey()
214 return ahash_setkey_unaligned(tfm, key, keylen); in crypto_ahash_setkey()
216 return tfm->setkey(tfm, key, keylen); in crypto_ahash_setkey()
220 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey() argument
234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req() local
235 unsigned long alignmask = crypto_ahash_alignmask(tfm); in ahash_save_req()
236 unsigned int ds = crypto_ahash_digestsize(tfm); in ahash_save_req()
353 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op() local
354 unsigned long alignmask = crypto_ahash_alignmask(tfm); in crypto_ahash_op()
428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup() local
435 err = tfm->update(req); in ahash_def_finup()
449 static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) in crypto_ahash_init_tfm() argument
451 struct crypto_ahash *hash = __crypto_ahash_cast(tfm); in crypto_ahash_init_tfm()
459 if (tfm->__crt_alg->cra_type != &crypto_ahash_type) in crypto_ahash_init_tfm()
460 return crypto_init_shash_ops_async(tfm); in crypto_ahash_init_tfm()