Lines Matching defs:ahash
77 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
82 len = size + crypto_ahash_digestsize(ahash);
86 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash);
109 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash,
114 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash),
117 ahash_request_set_tfm(req, ahash);
122 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash,
126 crypto_ahash_reqsize(ahash),
347 struct crypto_ahash *ahash;
360 ahash = ahp->ahash;
377 iph_base = ah_alloc_tmp(ahash, nfrags + sglists, IPV6HDR_BASELEN +
385 req = ah_tmp_req(ahash, icv);
386 sg = ah_req_sg(ahash, req);
523 struct crypto_ahash *ahash;
552 ahash = ahp->ahash;
579 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len +
589 req = ah_tmp_req(ahash, icv);
590 sg = ah_req_sg(ahash, req);
682 struct crypto_ahash *ahash;
698 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0);
699 if (IS_ERR(ahash)) {
704 ahp->ahash = ahash;
705 if (crypto_ahash_setkey(ahash, x->aalg->alg_key,
721 crypto_ahash_digestsize(ahash)) {
748 crypto_free_ahash(ahp->ahash);
761 crypto_free_ahash(ahp->ahash);