Lines Matching refs:ahash

200 static int ahash_set_sh_desc(struct crypto_ahash *ahash)  in ahash_set_sh_desc()  argument
202 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
203 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
256 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc() argument
258 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in axcbc_set_sh_desc()
259 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc()
308 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc() argument
310 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in acmac_set_sh_desc()
311 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc()
421 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
424 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
426 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
427 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
478 return ahash_set_sh_desc(ahash); in ahash_setkey()
484 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey() argument
487 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in axcbc_setkey()
501 return axcbc_set_sh_desc(ahash); in axcbc_setkey()
504 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey() argument
507 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in acmac_setkey()
521 return acmac_set_sh_desc(ahash); in acmac_setkey()
581 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_cpy() local
582 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_cpy()
584 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_cpy()
632 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_switch() local
633 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done_switch()
635 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_switch()
697 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_edesc_alloc() local
698 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_edesc_alloc()
814 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
815 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
821 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx()
939 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
940 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
946 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
1000 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
1001 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
1008 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1074 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1075 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
1079 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1141 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1142 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1148 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1190 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1191 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1197 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx()
1311 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1312 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1318 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1387 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1388 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1395 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_first()
1754 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1861 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()