/drivers/crypto/caam/ |
D | caamhash.c | 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 [all …]
|
D | caamalg_qi2.c | 3138 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3140 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc() 3141 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3310 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3313 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_setkey() 3314 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3315 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3359 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3403 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local 3406 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_done() [all …]
|
D | Kconfig | 133 Selecting this will offload ahash for users of the
|
/drivers/crypto/aspeed/ |
D | aspeed-hace-hash.c | 794 ast_alg = container_of(alg, struct aspeed_hace_alg, alg.ahash.base); in aspeed_sham_cra_init() 853 .alg.ahash.base = { 880 .alg.ahash.op = { 885 .alg.ahash.base = { 912 .alg.ahash.op = { 917 .alg.ahash.base = { 944 .alg.ahash.op = { 950 .alg.ahash.base = { 979 .alg.ahash.op = { 985 .alg.ahash.base = { [all …]
|
D | aspeed-hace.h | 265 struct ahash_engine_alg ahash; member
|
/drivers/crypto/qce/ |
D | sha.h | 63 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local 64 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() 67 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
|
D | sha.c | 40 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local 45 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() 285 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final() 322 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest() 395 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 398 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init() 466 alg = &tmpl->alg.ahash; in qce_ahash_register_one() 518 crypto_unregister_ahash(&tmpl->alg.ahash); in qce_ahash_unregister()
|
D | common.h | 91 struct ahash_alg ahash; member
|
D | common.c | 150 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local 154 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
|
/drivers/crypto/ |
D | n2_core.c | 379 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local 380 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init() 393 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init() 405 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local 406 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit() 414 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local 415 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init() 438 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init() 454 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local 455 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit() [all …]
|
D | sa2ul.c | 159 struct ahash_alg ahash; member 1420 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run() 1513 ctx->fallback.ahash = in sa_sha_cra_init_alg() 1516 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg() 1519 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg() 1529 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg() 1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init() 1561 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update() 1576 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final() 1590 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup() [all …]
|
D | sa2ul.h | 319 struct crypto_ahash *ahash; member
|
/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 233 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local 235 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result() 274 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 279 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result() 298 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 524 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local 525 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result() 626 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv() 923 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init() 984 .alg.ahash = { [all …]
|
D | safexcel.c | 1281 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms() 1302 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms() 1324 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
|
D | safexcel.h | 883 struct ahash_alg ahash; member
|
/drivers/md/ |
D | dm-verity-target.c | 1210 struct crypto_ahash *ahash; in verity_setup_hash_alg() local 1230 ahash = crypto_alloc_ahash(alg_name, 0, in verity_setup_hash_alg() 1232 if (IS_ERR(ahash)) { in verity_setup_hash_alg() 1234 return PTR_ERR(ahash); in verity_setup_hash_alg() 1236 driver_name = crypto_ahash_driver_name(ahash); in verity_setup_hash_alg() 1250 crypto_free_ahash(ahash); in verity_setup_hash_alg() 1251 ahash = NULL; in verity_setup_hash_alg() 1261 v->ahash_tfm = ahash; in verity_setup_hash_alg() 1263 v->digest_size = crypto_ahash_digestsize(ahash); in verity_setup_hash_alg() 1265 crypto_ahash_reqsize(ahash); in verity_setup_hash_alg()
|
/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 683 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_update() local 686 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_update() 702 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_digest() local 705 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_digest()
|
/drivers/crypto/ccree/ |
D | cc_hash.c | 726 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey() argument 739 ctx = crypto_ahash_ctx_dma(ahash); in cc_hash_setkey() 743 blocksize = crypto_tfm_alg_blocksize(&ahash->base); in cc_hash_setkey() 744 digestsize = crypto_ahash_digestsize(ahash); in cc_hash_setkey() 921 static int cc_xcbc_setkey(struct crypto_ahash *ahash, in cc_xcbc_setkey() argument 925 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in cc_xcbc_setkey() 1007 static int cc_cmac_setkey(struct crypto_ahash *ahash, in cc_cmac_setkey() argument 1010 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in cc_cmac_setkey() 1501 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in cc_hash_export() local 1502 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in cc_hash_export() [all …]
|
/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 316 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 317 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ccp_sha_cra_init() 322 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
D | ccp-crypto-aes-cmac.c | 338 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local 343 crypto_ahash_set_reqsize_dma(ahash, in ccp_aes_cmac_cra_init()
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 64 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in sun8i_ss_hmac_setkey() argument 67 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(ahash); in sun8i_ss_hmac_setkey() 69 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey() 72 digestsize = crypto_ahash_digestsize(ahash); in sun8i_ss_hmac_setkey()
|
D | sun8i-ss.h | 317 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key,
|
/drivers/crypto/marvell/cesa/ |
D | hash.c | 843 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export() local 845 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_export() 848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 861 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import() local 863 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_import() 872 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
|
/drivers/crypto/bcm/ |
D | cipher.c | 657 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local 658 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() 899 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local 901 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash() 998 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local 1000 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp() 2251 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 2254 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 2257 __func__, ahash, key, keylen); in ahash_setkey() 2315 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument [all …]
|
/drivers/crypto/stm32/ |
D | stm32-hash.c | 900 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in stm32_hash_emptymsg_fallback() local 901 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(ahash); in stm32_hash_emptymsg_fallback()
|