Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: delta_performer.cc

Issue 6771024: AU: Switch to 2048 bit RSA keys; Pad SHA256 hashes appropriately. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: remove debug log statement Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | delta_performer_unittest.cc » ('j') | payload_signer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | delta_performer_unittest.cc » ('j') | payload_signer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698