/Linux-v4.19/net/ipv4/ |
D | ah4.c | 24 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 29 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 30 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 35 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 48 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 51 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 54 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 59 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 62 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 67 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/Linux-v4.19/net/ipv6/ |
D | ah6.c | 61 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 66 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 67 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 72 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 90 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 93 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 96 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 101 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 104 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 109 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/Linux-v4.19/drivers/crypto/caam/ |
D | caamhash.c | 292 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 294 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 295 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 430 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument 433 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 434 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 435 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 479 return ahash_set_sh_desc(ahash); in ahash_setkey() 482 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey() 530 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx() local [all …]
|
D | Kconfig | 114 Selecting this will offload ahash for users of the
|
/Linux-v4.19/drivers/crypto/qce/ |
D | sha.h | 70 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local 71 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() 74 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
|
D | sha.c | 41 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local 46 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() 149 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local 152 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() 154 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export() 180 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local 182 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() 186 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 420 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 423 crypto_ahash_set_reqsize(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init() [all …]
|
D | common.h | 91 struct ahash_alg ahash; member
|
D | common.c | 234 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local 238 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
|
/Linux-v4.19/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 154 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local 190 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 205 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_ahash_send_req() local 216 if (queued <= crypto_ahash_blocksize(ahash)) in safexcel_ahash_send_req() 225 extra = queued & (crypto_ahash_blocksize(ahash) - 1); in safexcel_ahash_send_req() 230 extra = crypto_ahash_blocksize(ahash); in safexcel_ahash_send_req() 382 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local 383 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result() 484 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv() 525 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_ahash_cache() local [all …]
|
D | safexcel.c | 875 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms() 893 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms() 912 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
|
D | safexcel.h | 647 struct ahash_alg ahash; member
|
/Linux-v4.19/drivers/crypto/ |
D | n2_core.c | 375 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local 376 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init() 389 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init() 401 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local 402 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit() 410 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local 411 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init() 434 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init() 450 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local 451 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit() [all …]
|
D | Kconfig | 692 ahash, and aead algorithms with the kernel cryptographic API.
|
D | talitos.c | 2127 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest() local 2129 ahash->init(areq); in ahash_digest()
|
/Linux-v4.19/include/net/ |
D | ah.h | 13 struct crypto_ahash *ahash; member
|
/Linux-v4.19/drivers/crypto/ccree/ |
D | cc_hash.c | 699 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey() argument 712 ctx = crypto_ahash_ctx(ahash); in cc_hash_setkey() 716 blocksize = crypto_tfm_alg_blocksize(&ahash->base); in cc_hash_setkey() 717 digestsize = crypto_ahash_digestsize(ahash); in cc_hash_setkey() 876 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in cc_hash_setkey() 887 static int cc_xcbc_setkey(struct crypto_ahash *ahash, in cc_xcbc_setkey() argument 891 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_xcbc_setkey() 959 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in cc_xcbc_setkey() 969 static int cc_cmac_setkey(struct crypto_ahash *ahash, in cc_cmac_setkey() argument 972 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_cmac_setkey() [all …]
|
/Linux-v4.19/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 702 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_update() local 705 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_update() 721 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in crypto4xx_hash_digest() local 724 unsigned int ds = crypto_ahash_digestsize(ahash); in crypto4xx_hash_digest()
|
/Linux-v4.19/include/crypto/ |
D | hash.h | 67 #define AHASH_REQUEST_ON_STACK(name, ahash) \ argument 69 crypto_ahash_reqsize(ahash)] CRYPTO_MINALIGN_ATTR; \
|
/Linux-v4.19/drivers/crypto/marvell/ |
D | hash.c | 813 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export() local 815 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_export() 818 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 831 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import() local 833 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_import() 842 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
|
/Linux-v4.19/drivers/crypto/bcm/ |
D | cipher.c | 705 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local 706 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() 947 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local 949 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash() 1047 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local 1049 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp() 2351 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 2354 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 2357 __func__, ahash, key, keylen); in ahash_setkey() 2415 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument [all …]
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-aes-cmac.c | 341 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local 347 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_aes_cmac_req_ctx)); in ccp_aes_cmac_cra_init()
|
D | ccp-crypto-sha.c | 327 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 332 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
/Linux-v4.19/crypto/ |
D | Makefile | 27 crypto_hash-y += ahash.o
|
/Linux-v4.19/Documentation/crypto/ |
D | architecture.rst | 152 - ahash for asynchronous message digest 327 | skcipher | | ahash | 415 | ahash |
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 271 __u32 ahash; in ip_vs_svc_hashkey() local 278 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey() 279 ahash ^= ((size_t) ipvs >> 8); in ip_vs_svc_hashkey() 281 return (proto ^ ahash ^ (porth >> IP_VS_SVC_TAB_BITS) ^ porth) & in ip_vs_svc_hashkey()
|