/linux-5.19.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-5.19.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-5.19.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 | 3133 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3135 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 3136 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3305 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3308 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 3309 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3310 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3348 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3392 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local 3395 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-5.19.10/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() 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()
|
D | common.h | 91 struct ahash_alg ahash; member
|
D | common.c | 149 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()
|
/linux-5.19.10/drivers/crypto/ |
D | n2_core.c | 378 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 …]
|
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 | 318 struct crypto_ahash *ahash; member
|
/linux-5.19.10/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 …]
|
/linux-5.19.10/include/net/ |
D | ah.h | 13 struct crypto_ahash *ahash; member
|
/linux-5.19.10/include/crypto/internal/ |
D | hash.h | 162 struct crypto_ahash *ahash) in ahash_alg_instance() argument 164 return ahash_instance(crypto_tfm_alg_instance(&ahash->base)); in ahash_alg_instance()
|
/linux-5.19.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-5.19.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-5.19.10/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 59 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in sun8i_ss_hmac_setkey() argument 62 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(ahash); in sun8i_ss_hmac_setkey() 63 struct ahash_alg *alg = __crypto_ahash_alg(ahash->base.__crt_alg); in sun8i_ss_hmac_setkey() 66 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey()
|
D | sun8i-ss.h | 326 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key,
|
/linux-5.19.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()
|
/linux-5.19.10/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()
|
/linux-5.19.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 | 317 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()
|
/linux-5.19.10/drivers/crypto/bcm/ |
D | cipher.c | 658 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 …]
|
/linux-5.19.10/Documentation/crypto/ |
D | architecture.rst | 152 - ahash for asynchronous message digest 304 | skcipher | | ahash | 388 | ahash |
|