verity: extract the compare part out of compute_and_compare

BUG=9752
TEST=Unit tests pass. Booted and surfed a few sites.

Change-Id: I5d1f63b7afa2e6f316defd1997a9f1d3934144f6

Review URL: http://codereview.chromium.org/6072008
1 file changed