Lines Matching refs:tfm
43 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done()
81 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_ahash_async_req_handle()
82 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle()
134 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_init()
235 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update() local
237 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_update()
245 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
312 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_final()
335 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_digest()
367 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey() argument
370 unsigned int digestsize = crypto_ahash_digestsize(tfm); in qce_ahash_hmac_setkey()
371 struct qce_sha_ctx *ctx = crypto_tfm_ctx(&tfm->base); in qce_ahash_hmac_setkey()
381 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_hmac_setkey()
430 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in qce_ahash_hmac_setkey()
440 static int qce_ahash_cra_init(struct crypto_tfm *tfm) in qce_ahash_cra_init() argument
442 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
443 struct qce_sha_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ahash_cra_init()