• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/ipv4/

Lines Matching defs:ahash

21 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
26 len = size + crypto_ahash_digestsize(ahash) +
27 (crypto_ahash_alignmask(ahash) &
32 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash);
45 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp,
48 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1);
51 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash,
56 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash),
59 ahash_request_set_tfm(req, ahash);
64 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash,
68 crypto_ahash_reqsize(ahash),
128 icv = ah_tmp_icv(ahp->ahash, iph, ihl);
152 struct crypto_ahash *ahash;
160 ahash = ahp->ahash;
171 iph = ah_alloc_tmp(ahash, nfrags, ihl);
175 icv = ah_tmp_icv(ahash, iph, ihl);
176 req = ah_tmp_req(ahash, icv);
177 sg = ah_req_sg(ahash, req);
258 icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len);
284 struct crypto_ahash *ahash;
297 ahash = ahp->ahash;
325 work_iph = ah_alloc_tmp(ahash, nfrags, ihl + ahp->icv_trunc_len);
330 icv = ah_tmp_icv(ahash, auth_data, ahp->icv_trunc_len);
331 req = ah_tmp_req(ahash, icv);
332 sg = ah_req_sg(ahash, req);
409 struct crypto_ahash *ahash;
421 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0);
422 if (IS_ERR(ahash))
425 ahp->ahash = ahash;
426 if (crypto_ahash_setkey(ahash, x->aalg->alg_key,
440 crypto_ahash_digestsize(ahash)) {
442 x->aalg->alg_name, crypto_ahash_digestsize(ahash),
462 crypto_free_ahash(ahp->ahash);
475 crypto_free_ahash(ahp->ahash);