Lines Matching refs:ahash

311 static int ahash_set_sh_desc(struct crypto_ahash *ahash)  in ahash_set_sh_desc()  argument
313 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
314 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
512 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
517 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
519 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
520 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
569 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
580 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
623 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx() local
624 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_unmap_ctx()
637 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
638 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
640 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
672 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
673 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
676 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_bi()
707 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
708 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
710 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
742 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
743 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
746 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_dst()
775 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
776 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
796 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
900 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
901 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
913 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
983 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
984 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
997 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1073 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1074 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
1080 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1153 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1154 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1163 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1216 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1217 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1236 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
1331 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1332 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1344 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1416 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1417 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1436 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
1577 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_export() local
1578 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_export()
1589 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_import() local
1590 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_import()
1750 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1787 ret = ahash_set_sh_desc(ahash); in caam_hash_cra_init()