Searched refs:ahash (Results 1 – 3 of 3) sorted by relevance
/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 …]
|
/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 …]
|
/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()
|