Lines Matching refs:ahash

3056  * struct caam_hash_ctx - ahash per-session context
3073 /* ahash state */
3138 static int ahash_set_sh_desc(struct crypto_ahash *ahash)
3140 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3141 int digestsize = crypto_ahash_digestsize(ahash);
3154 print_hex_dump_debug("ahash update shdesc@" __stringify(__LINE__)": ",
3166 print_hex_dump_debug("ahash update first shdesc@" __stringify(__LINE__)": ",
3178 print_hex_dump_debug("ahash final shdesc@" __stringify(__LINE__)": ",
3190 print_hex_dump_debug("ahash digest shdesc@" __stringify(__LINE__)": ",
3310 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key,
3313 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3314 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base);
3315 unsigned int digestsize = crypto_ahash_digestsize(ahash);
3359 ret = ahash_set_sh_desc(ahash);
3403 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3406 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3407 int digestsize = crypto_ahash_digestsize(ahash);
3430 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3433 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3459 crypto_ahash_digestsize(ahash), 1);
3468 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3471 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3472 int digestsize = crypto_ahash_digestsize(ahash);
3495 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3498 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3524 crypto_ahash_digestsize(ahash), 1);
3531 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3532 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3547 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1);
3650 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3651 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3660 int digestsize = crypto_ahash_digestsize(ahash);
3721 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3722 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3732 int digestsize = crypto_ahash_digestsize(ahash);
3815 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3816 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3823 int digestsize = crypto_ahash_digestsize(ahash);
3910 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3911 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3920 int digestsize = crypto_ahash_digestsize(ahash);
3983 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3984 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
3999 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1);
4104 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
4105 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
4114 int digestsize = crypto_ahash_digestsize(ahash);
4200 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
4201 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
4216 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) -
4413 /* ahash descriptors */
4553 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
4608 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct caam_hash_state));
4614 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);