Lines Matching refs:ahash

3049  * struct caam_hash_ctx - ahash per-session context
3066 /* ahash state */
3131 static int ahash_set_sh_desc(struct crypto_ahash *ahash)
3133 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3134 int digestsize = crypto_ahash_digestsize(ahash);
3147 print_hex_dump_debug("ahash update shdesc@" __stringify(__LINE__)": ",
3159 print_hex_dump_debug("ahash update first shdesc@" __stringify(__LINE__)": ",
3171 print_hex_dump_debug("ahash final shdesc@" __stringify(__LINE__)": ",
3183 print_hex_dump_debug("ahash digest shdesc@" __stringify(__LINE__)": ",
3303 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key,
3306 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3307 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base);
3308 unsigned int digestsize = crypto_ahash_digestsize(ahash);
3346 ret = ahash_set_sh_desc(ahash);
3390 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3393 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3394 int digestsize = crypto_ahash_digestsize(ahash);
3417 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3420 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3446 crypto_ahash_digestsize(ahash), 1);
3455 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3458 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3459 int digestsize = crypto_ahash_digestsize(ahash);
3482 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3485 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3511 crypto_ahash_digestsize(ahash), 1);
3518 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3519 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3534 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1);
3637 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3638 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3647 int digestsize = crypto_ahash_digestsize(ahash);
3708 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3709 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3719 int digestsize = crypto_ahash_digestsize(ahash);
3802 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3803 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3810 int digestsize = crypto_ahash_digestsize(ahash);
3897 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3898 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3907 int digestsize = crypto_ahash_digestsize(ahash);
3970 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
3971 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
3986 *next_buflen = in_len & (crypto_tfm_alg_blocksize(&ahash->base) - 1);
4091 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
4092 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
4101 int digestsize = crypto_ahash_digestsize(ahash);
4187 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
4188 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
4203 *next_buflen = req->nbytes & (crypto_tfm_alg_blocksize(&ahash->base) -
4400 /* ahash descriptors */
4540 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
4602 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);