Lines Matching refs:tfm
40 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_ahash_digest_fb() local
41 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm); in rk_ahash_digest_fb()
56 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local
57 int rk_digest_size = crypto_ahash_digestsize(tfm); in zero_message_process()
79 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_reg_init() local
80 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_ahash_reg_init()
114 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init() local
115 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_init()
127 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update() local
128 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_update()
142 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final() local
143 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_final()
156 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup() local
157 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_finup()
173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import() local
174 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_import()
186 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export() local
187 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_export()
198 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in rk_ahash_digest()
221 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_prepare() local
223 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_hash_prepare()
238 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_unprepare() local
240 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_hash_unprepare()
249 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_run() local
251 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_hash_run()
259 switch (crypto_ahash_digestsize(tfm)) { in rk_hash_run()
303 for (i = 0; i < crypto_ahash_digestsize(tfm) / 4; i++) { in rk_hash_run()
316 static int rk_cra_hash_init(struct crypto_tfm *tfm) in rk_cra_hash_init() argument
318 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); in rk_cra_hash_init()
320 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in rk_cra_hash_init()
322 const char *alg_name = crypto_tfm_alg_name(tfm); in rk_cra_hash_init()
336 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in rk_cra_hash_init()
347 static void rk_cra_hash_exit(struct crypto_tfm *tfm) in rk_cra_hash_exit() argument
349 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); in rk_cra_hash_exit()