Lines Matching refs:fallback_tfm

99 	ret = crypto_ahash_setkey(tfmctx->fallback_tfm, key, keylen);  in sun8i_ss_hmac_setkey()
127 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ss_hash_crainit()
129 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_crainit()
131 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_crainit()
134 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit()
135 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit()
139 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_crainit()
141 memcpy(algt->fbname, crypto_tfm_alg_driver_name(&op->fallback_tfm->base), CRYPTO_MAX_ALG_NAME); in sun8i_ss_hash_crainit()
149 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_crainit()
160 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_craexit()
172 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
184 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
196 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
212 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
231 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_update()
250 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_finup()
275 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_digest_fb()