Index: delta_performer.cc |
diff --git a/delta_performer.cc b/delta_performer.cc |
index 1a98102ff36ec4c04d329bd47699c18b1efc5bdd..54a69fb132f234dbb57088df09086ba8b64a4ca8 100644 |
--- a/delta_performer.cc |
+++ b/delta_performer.cc |
@@ -601,7 +601,8 @@ bool DeltaPerformer::VerifyPayload( |
OmahaHashCalculator signed_hasher; |
TEST_AND_RETURN_FALSE(signed_hasher.SetContext(signed_hash_context_)); |
TEST_AND_RETURN_FALSE(signed_hasher.Finalize()); |
- const vector<char>& hash_data = signed_hasher.raw_hash(); |
+ vector<char> hash_data = signed_hasher.raw_hash(); |
+ PayloadSigner::PadRSA2048SHA256Hash(&hash_data); |
TEST_AND_RETURN_FALSE(!hash_data.empty()); |
TEST_AND_RETURN_FALSE(hash_data == signed_hash_data); |
return true; |