Home
last modified time | relevance | path

Searched refs:ahash (Results 1 – 21 of 21) sorted by relevance

/drivers/crypto/caam/
Dcaamhash.c200 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
[all …]
Dcaamalg_qi2.c3134 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
3136 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
3137 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3306 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument
3309 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
3310 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey()
3311 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey()
3349 ret = ahash_set_sh_desc(ahash); in ahash_setkey()
3393 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local
3396 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done()
[all …]
DKconfig133 Selecting this will offload ahash for users of the
/drivers/crypto/qce/
Dsha.h63 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()
Dsha.c40 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()
283 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final()
320 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest()
393 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local
396 crypto_ahash_set_reqsize(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init()
464 alg = &tmpl->alg.ahash; in qce_ahash_register_one()
516 crypto_unregister_ahash(&tmpl->alg.ahash); in qce_ahash_unregister()
Dcommon.h91 struct ahash_alg ahash; member
Dcommon.c149 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local
153 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
/drivers/crypto/
Dn2_core.c378 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
379 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
392 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
404 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
405 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
413 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
414 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
437 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
453 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
454 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
[all …]
Dsa2ul.c158 struct ahash_alg ahash; member
1419 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1512 ctx->fallback.ahash = in sa_sha_cra_init_alg()
1515 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg()
1518 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg()
1528 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg()
1547 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1560 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1575 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
1589 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup()
[all …]
Dsa2ul.h318 struct crypto_ahash *ahash; member
Dtalitos.c2123 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest() local
2125 ahash->init(areq); in ahash_digest()
DKconfig822 ahash, and aead algorithms with the kernel cryptographic API.
/drivers/crypto/inside-secure/
Dsafexcel_hash.c233 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 …]
Dsafexcel.c1284 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms()
1305 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms()
1327 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
Dsafexcel.h877 struct ahash_alg ahash; member
/drivers/crypto/amcc/
Dcrypto4xx_alg.c683 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/
Dcc_hash.c726 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey() argument
739 ctx = crypto_ahash_ctx(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(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(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(ahash); in cc_hash_export()
[all …]
/drivers/crypto/marvell/cesa/
Dhash.c843 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/
Dcipher.c658 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local
659 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req()
900 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local
902 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash()
999 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local
1001 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp()
2252 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument
2255 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey()
2258 __func__, ahash, key, keylen); in ahash_setkey()
2316 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument
[all …]
/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c338 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local
343 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_aes_cmac_req_ctx)); in ccp_aes_cmac_cra_init()
Dccp-crypto-sha.c317 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local
322 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()