Lines Matching defs:hp
694 static int tcp_v6_md5_hash_headers(struct tcp_sigpool *hp,
703 bp = hp->scratch;
715 ahash_request_set_crypt(hp->req, &sg, NULL,
717 return crypto_ahash_update(hp->req);
724 struct tcp_sigpool hp;
726 if (tcp_sigpool_start(tcp_md5_sigpool_id, &hp))
729 if (crypto_ahash_init(hp.req))
731 if (tcp_v6_md5_hash_headers(&hp, daddr, saddr, th, th->doff << 2))
733 if (tcp_md5_hash_key(&hp, key))
735 ahash_request_set_crypt(hp.req, NULL, md5_hash, 0);
736 if (crypto_ahash_final(hp.req))
739 tcp_sigpool_end(&hp);
743 tcp_sigpool_end(&hp);
756 struct tcp_sigpool hp;
767 if (tcp_sigpool_start(tcp_md5_sigpool_id, &hp))
770 if (crypto_ahash_init(hp.req))
773 if (tcp_v6_md5_hash_headers(&hp, daddr, saddr, th, skb->len))
775 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
777 if (tcp_md5_hash_key(&hp, key))
779 ahash_request_set_crypt(hp.req, NULL, md5_hash, 0);
780 if (crypto_ahash_final(hp.req))
783 tcp_sigpool_end(&hp);
787 tcp_sigpool_end(&hp);