/Linux-v5.10/net/ipv4/ |
D | ah4.c | 25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 30 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 31 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 36 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 49 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 52 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 55 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 60 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 63 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 68 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/Linux-v5.10/net/ipv6/ |
D | ah6.c | 49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 54 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 55 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 81 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 92 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 97 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/Linux-v5.10/drivers/crypto/caam/ |
D | caamhash.c | 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 [all …]
|
D | caamalg_qi2.c | 3129 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3131 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 3132 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3301 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3304 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 3305 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3306 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3344 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3388 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local 3391 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_done() [all …]
|
D | Kconfig | 133 Selecting this will offload ahash for users of the
|
/Linux-v5.10/drivers/crypto/qce/ |
D | sha.c | 34 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local 39 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() 142 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local 145 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() 147 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export() 173 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local 175 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() 179 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 318 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final() 355 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest() [all …]
|
D | sha.h | 62 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local 63 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() 66 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
|
D | common.h | 87 struct ahash_alg ahash; member
|
D | common.c | 146 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local 150 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
|
/Linux-v5.10/drivers/crypto/ |
D | n2_core.c | 377 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local 378 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init() 391 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init() 403 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local 404 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit() 412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local 413 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init() 436 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init() 452 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local 453 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit() [all …]
|
D | sa2ul.c | 139 struct ahash_alg ahash; member 1393 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run() 1485 ctx->fallback.ahash = in sa_sha_cra_init_alg() 1488 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg() 1491 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg() 1501 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg() 1520 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init() 1533 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update() 1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final() 1562 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup() [all …]
|
D | sa2ul.h | 315 struct crypto_ahash *ahash; member
|
/Linux-v5.10/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 231 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local 233 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result() 272 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 277 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result() 296 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 522 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local 523 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result() 624 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv() 921 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init() 982 .alg.ahash = { [all …]
|
D | safexcel.c | 1287 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms() 1308 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms() 1330 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
|
/Linux-v5.10/include/net/ |
D | ah.h | 13 struct crypto_ahash *ahash; member
|
/Linux-v5.10/include/crypto/internal/ |
D | hash.h | 168 struct crypto_ahash *ahash) in ahash_alg_instance() argument 170 return ahash_instance(crypto_tfm_alg_instance(&ahash->base)); in ahash_alg_instance()
|
/Linux-v5.10/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()
|
/Linux-v5.10/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(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 …]
|
/Linux-v5.10/crypto/ |
D | ahash.c | 494 struct ahash_instance *ahash = ahash_instance(inst); in crypto_ahash_free_instance() local 496 ahash->free(ahash); in crypto_ahash_free_instance()
|
D | Makefile | 23 crypto_hash-y += ahash.o
|
/Linux-v5.10/drivers/crypto/marvell/cesa/ |
D | hash.c | 819 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export() local 821 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_export() 824 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 837 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import() local 839 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_import() 848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
|
/Linux-v5.10/drivers/crypto/ccp/ |
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(ahash, sizeof(struct ccp_aes_cmac_req_ctx)); in ccp_aes_cmac_cra_init()
|
D | ccp-crypto-sha.c | 316 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 321 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
/Linux-v5.10/drivers/crypto/bcm/ |
D | cipher.c | 659 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local 660 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() 901 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local 903 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash() 1001 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local 1003 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp() 2254 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 2257 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 2260 __func__, ahash, key, keylen); in ahash_setkey() 2318 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument [all …]
|
/Linux-v5.10/Documentation/crypto/ |
D | architecture.rst | 152 - ahash for asynchronous message digest 304 | skcipher | | ahash | 388 | ahash |
|