/linux-4.4.14/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.4.14/Documentation/DocBook/ |
D | crypto-API.xml.db | 70 API-struct-ahash-alg 72 API-crypto-alloc-ahash 73 API-crypto-free-ahash 74 API-crypto-ahash-init 75 API-crypto-ahash-digestsize 76 API-crypto-ahash-reqtfm 77 API-crypto-ahash-reqsize 78 API-crypto-ahash-setkey 79 API-crypto-ahash-finup 80 API-crypto-ahash-final [all …]
|
/linux-4.4.14/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.4.14/drivers/crypto/caam/ |
D | caamhash.c | 319 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 321 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc() 322 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 520 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument 525 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 527 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 528 int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 577 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 588 crypto_ahash_set_flags(ahash, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey() 628 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.4.14/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() 144 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local 147 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() 149 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export() 175 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local 177 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() 181 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 438 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 441 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.4.14/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 | 1158 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_export() local 1159 struct sahara_ctx *ctx = crypto_ahash_ctx(ahash); in sahara_sha_export() 1171 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_import() local 1172 struct sahara_ctx *ctx = crypto_ahash_ctx(ahash); in sahara_sha_import()
|
D | talitos.c | 1959 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest() local 1961 ahash->init(areq); in ahash_digest()
|
/linux-4.4.14/include/net/ |
D | ah.h | 12 struct crypto_ahash *ahash; member
|
/linux-4.4.14/include/crypto/ |
D | hash.h | 66 #define AHASH_REQUEST_ON_STACK(name, ahash) \ argument 68 crypto_ahash_reqsize(ahash)] CRYPTO_MINALIGN_ATTR; \
|
/linux-4.4.14/drivers/crypto/marvell/ |
D | hash.c | 803 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export() local 805 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_export() 808 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 822 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import() local 824 unsigned int digsize = crypto_ahash_digestsize(ahash); in mv_cesa_ahash_import() 833 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
|
/linux-4.4.14/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 | 304 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local 309 crypto_ahash_set_reqsize(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
|
/linux-4.4.14/crypto/ |
D | Makefile | 27 crypto_hash-y += ahash.o
|
/linux-4.4.14/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()
|
/linux-4.4.14/Documentation/ |
D | kernel-parameters.txt | 1491 If left unspecified, ahash usage is disabled. 1493 ahash performance varies for different data sizes on 1501 ahash performance varies for different chunk sizes on
|