Lines Matching refs:ahash
3130 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
3132 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
3133 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3302 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument
3305 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
3306 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
3307 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
3345 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
3389 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
3392 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
3393 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
3416 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
3419 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
3445 crypto_ahash_digestsize(ahash), 1); in ahash_done_bi()
3454 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
3457 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
3458 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
3481 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
3484 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
3510 crypto_ahash_digestsize(ahash), 1); in ahash_done_ctx_dst()
3517 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
3518 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
3533 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
3636 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
3637 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
3646 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
3707 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
3708 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
3718 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
3801 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
3802 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
3809 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
3896 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
3897 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
3906 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
3969 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
3970 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
3985 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
4090 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
4091 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
4100 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
4186 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
4187 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
4202 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
4539 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
4601 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()