/linux-4.1.27/net/ipv4/ |
D | ah4.c | 23 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 28 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 29 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 34 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 47 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 50 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 53 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 58 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 61 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 66 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/linux-4.1.27/net/ipv6/ |
D | ah6.c | 60 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 65 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 66 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 71 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 89 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 92 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 95 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 100 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 103 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 108 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/linux-4.1.27/drivers/crypto/caam/ |
D | caamhash.c | 311 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 313 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 314 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 512 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument 517 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 519 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 520 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 569 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 580 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey() 623 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx() local [all …]
|
D | Kconfig | 96 Selecting this will offload ahash for users of the
|
/linux-4.1.27/drivers/crypto/qce/ |
D | sha.h | 72 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local 73 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() 76 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() 148 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local 151 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() 153 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export() 179 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local 181 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() 185 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 442 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 445 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-4.1.27/drivers/crypto/ |
D | n2_core.c | 360 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local 361 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init() 374 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init() 386 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local 387 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit() 395 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local 396 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init() 419 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init() 435 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local 436 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit() [all …]
|
D | sahara.c | 1222 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_export() local 1223 struct sahara_ctx *ctx = crypto_ahash_ctx(ahash); in sahara_sha_export() 1235 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_import() local 1236 struct sahara_ctx *ctx = crypto_ahash_ctx(ahash); in sahara_sha_import()
|
D | talitos.c | 1810 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest() local 1812 ahash->init(areq); in ahash_digest()
|
/linux-4.1.27/include/net/ |
D | ah.h | 12 struct crypto_ahash *ahash; member
|
/linux-4.1.27/drivers/crypto/ccp/ |
D | ccp-crypto-aes-cmac.c | 323 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local 329 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_aes_cmac_req_ctx)); in ccp_aes_cmac_cra_init()
|
D | ccp-crypto-sha.c | 291 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 296 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
/linux-4.1.27/crypto/ |
D | Makefile | 25 crypto_hash-y += ahash.o
|
/linux-4.1.27/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) net >> 8); in ip_vs_svc_hashkey() 281 return (proto ^ ahash ^ (porth >> IP_VS_SVC_TAB_BITS) ^ porth) & in ip_vs_svc_hashkey()
|
/linux-4.1.27/Documentation/ |
D | kernel-parameters.txt | 1427 If left unspecified, ahash usage is disabled. 1429 ahash performance varies for different data sizes on 1437 ahash performance varies for different chunk sizes on
|