Lines Matching refs:ahash

292 static int ahash_set_sh_desc(struct crypto_ahash *ahash)  in ahash_set_sh_desc()  argument
294 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
295 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
430 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
433 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
434 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
435 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
479 return ahash_set_sh_desc(ahash); in ahash_setkey()
482 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
530 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx() local
531 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_unmap_ctx()
546 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
547 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
549 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
580 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
581 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
584 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_bi()
615 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
616 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
618 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
649 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
650 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
653 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_dst()
741 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
742 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
758 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
871 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
872 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
880 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
946 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
947 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
956 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1033 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1034 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
1040 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1113 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1114 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1122 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1173 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1174 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1189 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
1298 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1299 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1307 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1388 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1389 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1402 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
1724 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1784 return ahash_set_sh_desc(ahash); in caam_hash_cra_init()