/linux-6.6.21/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-6.6.21/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-6.6.21/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 …]
|
/linux-6.6.21/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
|
/linux-6.6.21/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
|
/linux-6.6.21/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 788 struct crypto_ahash *ahash; in gss_krb5_aes_encrypt() local 795 ahash = kctx->initiator_integ; in gss_krb5_aes_encrypt() 799 ahash = kctx->acceptor_integ; in gss_krb5_aes_encrypt() 837 err = gss_krb5_checksum(ahash, NULL, 0, buf, in gss_krb5_aes_encrypt() 861 struct crypto_ahash *ahash; in gss_krb5_aes_decrypt() local 871 ahash = kctx->acceptor_integ; in gss_krb5_aes_decrypt() 875 ahash = kctx->initiator_integ; in gss_krb5_aes_decrypt() 889 ret = gss_krb5_checksum(ahash, NULL, 0, &subbuf, 0, &our_hmac_obj); in gss_krb5_aes_decrypt() 1016 struct crypto_ahash *ahash; in krb5_etm_encrypt() local 1025 ahash = kctx->initiator_integ; in krb5_etm_encrypt() [all …]
|
/linux-6.6.21/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
|
/linux-6.6.21/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-6.6.21/include/crypto/internal/ |
D | hash.h | 170 static inline void crypto_ahash_set_reqsize_dma(struct crypto_ahash *ahash, in crypto_ahash_set_reqsize_dma() argument 174 ahash->reqsize = reqsize; in crypto_ahash_set_reqsize_dma() 190 struct crypto_ahash *ahash) in ahash_alg_instance() argument 192 return ahash_instance(crypto_tfm_alg_instance(&ahash->base)); in ahash_alg_instance()
|
/linux-6.6.21/include/net/ |
D | ah.h | 13 struct crypto_ahash *ahash; member
|
/linux-6.6.21/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-6.6.21/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()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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,
|
/linux-6.6.21/crypto/ |
D | ahash.c | 463 struct ahash_instance *ahash = ahash_instance(inst); in crypto_ahash_free_instance() local 465 ahash->free(ahash); in crypto_ahash_free_instance()
|
/linux-6.6.21/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-6.6.21/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 …]
|