Home
last modified time | relevance | path

Searched refs:ahash (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/net/ipv4/
Dah4.c23 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/
Dah6.c60 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/
Dcaamhash.c311 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 …]
DKconfig96 Selecting this will offload ahash for users of the
/linux-4.1.27/drivers/crypto/qce/
Dsha.h72 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()
Dsha.c41 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 …]
Dcommon.h91 struct ahash_alg ahash; member
Dcommon.c234 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/
Dn2_core.c360 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 …]
Dsahara.c1222 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()
Dtalitos.c1810 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/
Dah.h12 struct crypto_ahash *ahash; member
/linux-4.1.27/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c323 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()
Dccp-crypto-sha.c291 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/
DMakefile25 crypto_hash-y += ahash.o
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c271 __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/
Dkernel-parameters.txt1427 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