Lines Matching refs:ahash
3087 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
3089 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
3090 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3259 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument
3262 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
3263 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
3264 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
3302 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
3307 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
3347 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
3350 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
3351 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
3374 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
3377 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
3395 crypto_ahash_digestsize(ahash), 1); in ahash_done_bi()
3404 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
3407 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
3408 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
3431 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
3434 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
3452 crypto_ahash_digestsize(ahash), 1); in ahash_done_ctx_dst()
3459 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
3460 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
3477 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
3587 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
3588 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
3597 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
3658 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
3659 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
3669 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
3752 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
3753 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
3760 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
3847 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
3848 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
3857 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
3920 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
3921 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
3937 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
4050 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
4051 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
4060 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
4146 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
4147 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
4161 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
4511 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
4569 return ahash_set_sh_desc(ahash); in caam_hash_cra_init()