Lines Matching refs:ahash

3133 static int ahash_set_sh_desc(struct crypto_ahash *ahash)  in ahash_set_sh_desc()  argument
3135 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
3136 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3305 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument
3308 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
3309 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
3310 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
3348 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
3392 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
3395 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
3396 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
3419 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
3422 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
3448 crypto_ahash_digestsize(ahash), 1); in ahash_done_bi()
3457 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
3460 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
3461 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
3484 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
3487 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
3513 crypto_ahash_digestsize(ahash), 1); in ahash_done_ctx_dst()
3520 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
3521 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
3536 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_ctx()
3639 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
3640 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
3649 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
3710 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
3711 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
3721 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
3804 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
3805 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
3812 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
3899 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
3900 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
3909 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
3972 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
3973 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
3988 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1); in ahash_update_no_ctx()
4093 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
4094 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
4103 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
4189 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
4190 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
4205 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) - in ahash_update_first()
4542 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
4604 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()