Lines Matching refs:fallback_tfm
84 ret = crypto_ahash_setkey(tfmctx->fallback_tfm, key, keylen); in sun8i_ss_hmac_setkey()
106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ss_hash_init_tfm()
108 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_init_tfm()
110 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_init_tfm()
114 crypto_ahash_statesize(op->fallback_tfm)); in sun8i_ss_hash_init_tfm()
118 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_init_tfm()
120 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ss_hash_init_tfm()
129 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_init_tfm()
140 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_exit_tfm()
152 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
164 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
176 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
188 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
214 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_update()
229 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_finup()
258 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_digest_fb()