Lines Matching refs:tfm
43 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done()
80 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_ahash_async_req_handle()
81 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle()
130 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_init()
231 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update() local
233 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_update()
241 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
308 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_final()
331 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_digest()
363 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey() argument
366 unsigned int digestsize = crypto_ahash_digestsize(tfm); in qce_ahash_hmac_setkey()
367 struct qce_sha_ctx *ctx = crypto_tfm_ctx(&tfm->base); in qce_ahash_hmac_setkey()
377 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_hmac_setkey()
426 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in qce_ahash_hmac_setkey()
436 static int qce_ahash_cra_init(struct crypto_tfm *tfm) in qce_ahash_cra_init() argument
438 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
439 struct qce_sha_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ahash_cra_init()