/Linux-v5.4/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.4/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.4/drivers/crypto/caam/ |
D | caamhash.c | 222 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 224 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 225 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 278 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc() argument 280 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in axcbc_set_sh_desc() 281 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc() 330 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc() argument 332 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in acmac_set_sh_desc() 333 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc() 443 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument [all …]
|
D | caamalg_qi2.c | 3087 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3089 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 3090 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3259 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3262 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 3263 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3264 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3302 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3307 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey() 3347 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local [all …]
|
D | Kconfig | 129 Selecting this will offload ahash for users of the
|
/Linux-v5.4/drivers/crypto/qce/ |
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 | sha.c | 33 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local 38 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() 141 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local 144 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() 146 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export() 172 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local 174 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() 178 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 415 crypto_ahash_set_reqsize(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init() [all …]
|
D | common.h | 83 struct ahash_alg ahash; member
|
D | common.c | 226 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local 230 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
|
/Linux-v5.4/drivers/crypto/ |
D | n2_core.c | 376 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local 377 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init() 390 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init() 402 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local 403 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit() 411 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local 412 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init() 435 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init() 451 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local 452 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit() [all …]
|
D | talitos.c | 2121 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest() local 2123 ahash->init(areq); in ahash_digest()
|
/Linux-v5.4/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 183 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local 185 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result() 224 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 229 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result() 242 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 417 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local 418 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result() 519 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv() 790 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init() 849 .alg.ahash = { [all …]
|
D | safexcel.c | 1192 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms() 1213 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms() 1235 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
|
D | safexcel.h | 770 struct ahash_alg ahash; member
|
/Linux-v5.4/include/net/ |
D | ah.h | 13 struct crypto_ahash *ahash; member
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_hash.c | 719 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey() argument 732 ctx = crypto_ahash_ctx(ahash); in cc_hash_setkey() 736 blocksize = crypto_tfm_alg_blocksize(&ahash->base); in cc_hash_setkey() 737 digestsize = crypto_ahash_digestsize(ahash); in cc_hash_setkey() 903 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in cc_hash_setkey() 917 static int cc_xcbc_setkey(struct crypto_ahash *ahash, in cc_xcbc_setkey() argument 921 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_xcbc_setkey() 994 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in cc_xcbc_setkey() 1006 static int cc_cmac_setkey(struct crypto_ahash *ahash, in cc_cmac_setkey() argument 1009 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_cmac_setkey() [all …]
|
/Linux-v5.4/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 704 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_update() local 707 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_update() 723 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_digest() local 726 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_digest()
|
/Linux-v5.4/drivers/crypto/marvell/ |
D | hash.c | 809 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export() local 811 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_export() 814 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 827 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import() local 829 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_import() 838 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
|
/Linux-v5.4/include/crypto/ |
D | hash.h | 62 #define AHASH_REQUEST_ON_STACK(name, ahash) \ argument 64 crypto_ahash_reqsize(ahash)] CRYPTO_MINALIGN_ATTR; \
|
/Linux-v5.4/drivers/crypto/ccp/ |
D | ccp-crypto-aes-cmac.c | 339 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local 344 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_aes_cmac_req_ctx)); in ccp_aes_cmac_cra_init()
|
D | ccp-crypto-sha.c | 322 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 327 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
/Linux-v5.4/drivers/crypto/bcm/ |
D | cipher.c | 694 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local 695 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() 936 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local 938 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash() 1036 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local 1038 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp() 2315 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 2318 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 2321 __func__, ahash, key, keylen); in ahash_setkey() 2379 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument [all …]
|
/Linux-v5.4/Documentation/crypto/ |
D | architecture.rst | 152 - ahash for asynchronous message digest 308 | skcipher | | ahash | 392 | ahash |
|
/Linux-v5.4/crypto/ |
D | Makefile | 25 crypto_hash-y += ahash.o
|
/Linux-v5.4/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 266 __u32 ahash; in ip_vs_svc_hashkey() local 273 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey() 274 ahash ^= ((size_t) ipvs >> 8); in ip_vs_svc_hashkey() 276 return (proto ^ ahash ^ (porth >> IP_VS_SVC_TAB_BITS) ^ porth) & in ip_vs_svc_hashkey()
|