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()
817 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
818 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_ctx()
824 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx()
942 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
943 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_ctx()
949 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
1003 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
1004 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_ctx()
1011 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1077 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1078 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_digest()
1082 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1144 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1145 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_final_no_ctx()
1151 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1193 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1194 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_no_ctx()
1200 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx()
1314 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1315 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_finup_no_ctx()
1321 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1390 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1391 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_update_first()
1398 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_first()
1757 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1864 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()