Searched refs:ahash (Results 1 – 3 of 3) sorted by relevance
/net/ipv4/ |
D | ah4.c | 25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 30 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 31 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 36 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 49 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 52 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 55 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 60 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 63 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 68 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument [all …]
|
/net/ipv6/ |
D | ah6.c | 49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 54 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp() 55 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp() 60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument 81 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv() 84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 92 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 97 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 | 266 __u32 ahash; in ip_vs_svc_hashkey() local 273 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey() 274 ahash ^= ((size_t) ipvs >> 8); in ip_vs_svc_hashkey() 276 return (proto ^ ahash ^ (porth >> IP_VS_SVC_TAB_BITS) ^ porth) & in ip_vs_svc_hashkey()
|