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

Unified Diff: utility/dev_sign_file.c

Issue 3126013: Fix KeyBlockVerify() to take an explicit param for whether to use hash only. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Fix one last typo Created 10 years, 4 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
Index: utility/dev_sign_file.c
diff --git a/utility/dev_sign_file.c b/utility/dev_sign_file.c
index d59ec4adb11a0e65e107cd0b1c1f14fe104ea5b4..3892d02faa2c4406cf76be33aed83f24f02eb135 100644
--- a/utility/dev_sign_file.c
+++ b/utility/dev_sign_file.c
@@ -210,8 +210,8 @@ static int Verify(const char* filename, const char* vblock_file) {
Debug("Current buf offset is at 0x%" PRIx64 " bytes\n", current_buf_offset);
- /* Check the keyblock */
- if (0 != KeyBlockVerify(key_block, file_size, NULL)) {
+ /* Check the key block (hash only) */
+ if (0 != KeyBlockVerify(key_block, file_size, NULL, 1)) {
error("Error verifying key block.\n");
return 1;
}

Powered by Google App Engine
This is Rietveld 408576698