Lines Matching refs:ahash
49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
54 len = size + crypto_ahash_digestsize(ahash) +
55 (crypto_ahash_alignmask(ahash) &
60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash);
78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp,
81 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1);
84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash,
89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash),
92 ahash_request_set_tfm(req, ahash);
97 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash,
101 crypto_ahash_reqsize(ahash),
305 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen);
331 struct crypto_ahash *ahash;
344 ahash = ahp->ahash;
361 iph_base = ah_alloc_tmp(ahash, nfrags + sglists, IPV6HDR_BASELEN +
368 icv = ah_tmp_icv(ahash, seqhi, seqhi_len);
369 req = ah_tmp_req(ahash, icv);
370 sg = ah_req_sg(ahash, req);
474 icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len);
517 struct crypto_ahash *ahash;
546 ahash = ahp->ahash;
573 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len +
582 icv = ah_tmp_icv(ahash, seqhi, seqhi_len);
583 req = ah_tmp_req(ahash, icv);
584 sg = ah_req_sg(ahash, req);
676 struct crypto_ahash *ahash;
688 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0);
689 if (IS_ERR(ahash))
692 ahp->ahash = ahash;
693 if (crypto_ahash_setkey(ahash, x->aalg->alg_key,
707 crypto_ahash_digestsize(ahash)) {
709 x->aalg->alg_name, crypto_ahash_digestsize(ahash),
735 crypto_free_ahash(ahp->ahash);
748 crypto_free_ahash(ahp->ahash);