Lines Matching refs:ahash
205 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
207 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc()
208 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
261 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc() argument
263 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in axcbc_set_sh_desc()
264 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc()
313 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc() argument
315 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in acmac_set_sh_desc()
316 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc()
424 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
427 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_setkey()
429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
430 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
487 return ahash_set_sh_desc(ahash); in ahash_setkey()
493 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey() argument
496 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in axcbc_setkey()
510 return axcbc_set_sh_desc(ahash); in axcbc_setkey()
513 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey() argument
516 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in acmac_setkey()
530 return acmac_set_sh_desc(ahash); in acmac_setkey()
590 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_cpy() local
591 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_cpy()
593 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_done_cpy()
641 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_switch() local
642 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_done_switch()
644 int digestsize = crypto_ahash_digestsize(ahash); in ahash_done_switch()
821 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx() local
822 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_update_ctx()
828 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx()
946 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx() local
947 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_final_ctx()
953 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_ctx()
1007 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx() local
1008 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_finup_ctx()
1015 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_ctx()
1081 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_digest() local
1082 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_digest()
1086 int digestsize = crypto_ahash_digestsize(ahash); in ahash_digest()
1148 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_no_ctx() local
1149 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_final_no_ctx()
1155 int digestsize = crypto_ahash_digestsize(ahash); in ahash_final_no_ctx()
1197 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_no_ctx() local
1198 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_update_no_ctx()
1204 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx()
1318 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_no_ctx() local
1319 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_finup_no_ctx()
1325 int digestsize = crypto_ahash_digestsize(ahash); in ahash_finup_no_ctx()
1394 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_first() local
1395 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_update_first()
1402 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_first()
1761 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init() local
1769 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in caam_hash_cra_init()
1859 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct caam_hash_state)); in caam_hash_cra_init()
1865 return alg->setkey ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()