Lines Matching refs:ahash

222 static int ahash_set_sh_desc(struct crypto_ahash *ahash)  in ahash_set_sh_desc()  argument
224 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
225 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
278 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc() argument
280 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in axcbc_set_sh_desc()
281 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc()
330 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc() argument
332 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in acmac_set_sh_desc()
333 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc()
443 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
446 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
448 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
449 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
500 return ahash_set_sh_desc(ahash); in ahash_setkey()
503 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
507 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey() argument
510 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in axcbc_setkey()
514 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in axcbc_setkey()
526 return axcbc_set_sh_desc(ahash); in axcbc_setkey()
529 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey() argument
532 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in acmac_setkey()
537 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in acmac_setkey()
548 return acmac_set_sh_desc(ahash); in acmac_setkey()
605 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
606 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done()
608 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
633 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi() local
634 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_bi()
636 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_bi()
665 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src() local
666 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_src()
668 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_src()
693 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst() local
694 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_ctx_dst()
696 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_ctx_dst()
783 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
784 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
792 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx()
922 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
923 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
931 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
988 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
989 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
998 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1068 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1069 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
1075 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1145 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1146 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1154 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1204 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1205 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1212 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx()
1339 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1340 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1348 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1425 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1426 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1434 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_first()
1808 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1907 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()