Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/Documentation/DocBook/
Dcrypto-API.xml.db70 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/
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.4.14/drivers/crypto/caam/
Dcaamhash.c319 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 …]
DKconfig96 Selecting this will offload ahash for users of the
/linux-4.4.14/drivers/crypto/qce/
Dsha.h70 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()
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()
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 …]
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.4.14/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.c1158 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()
Dtalitos.c1959 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/
Dah.h12 struct crypto_ahash *ahash; member
/linux-4.4.14/include/crypto/
Dhash.h66 #define AHASH_REQUEST_ON_STACK(name, ahash) \ argument
68 crypto_ahash_reqsize(ahash)] CRYPTO_MINALIGN_ATTR; \
/linux-4.4.14/drivers/crypto/marvell/
Dhash.c803 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/
Dccp-crypto-aes-cmac.c341 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()
Dccp-crypto-sha.c304 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/
DMakefile27 crypto_hash-y += ahash.o
/linux-4.4.14/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) 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/
Dkernel-parameters.txt1491 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