Lines Matching refs:ahash
319 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
321 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
322 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
520 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
525 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
527 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
528 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
577 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
588 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
628 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx() local
629 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_unmap_ctx()
642 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
643 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
645 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
677 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
678 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
681 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_bi()
712 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
713 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
715 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
747 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
748 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
751 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_dst()
780 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
781 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
800 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
902 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
903 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
915 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
985 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
986 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
999 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()
1150 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1151 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1160 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1212 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1213 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1231 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
1326 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1327 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1339 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1408 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1409 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1427 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
1761 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1798 ret = ahash_set_sh_desc(ahash); in caam_hash_cra_init()