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

Unified Diff: utility/dev_sign_file.c

Issue 3155030: Oops. Pass the correct args to Verify* functions. (Closed) Base URL: http://src.chromium.org/git/vboot_reference.git
Patch Set: 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
« no previous file with comments | « firmware/version.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/dev_sign_file.c
diff --git a/utility/dev_sign_file.c b/utility/dev_sign_file.c
index 6fc06649a05fce0106089a823e5f9bb07a657ebd..ac3f40020e9b04d815d6731b9fb3b72a21d93edf 100644
--- a/utility/dev_sign_file.c
+++ b/utility/dev_sign_file.c
@@ -216,7 +216,7 @@ 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 key block (hash only) */
- if (0 != KeyBlockVerify(key_block, file_size, NULL, 1)) {
+ if (0 != KeyBlockVerify(key_block, key_block->key_block_size, NULL, 1)) {
error("Error verifying key block.\n");
return 1;
}
@@ -237,7 +237,7 @@ static int Verify(const char* filename, const char* vblock_file,
error("Error parsing data key.\n");
return 1;
}
- if (0 != VerifyKernelPreamble(preamble, file_size, rsa)) {
+ if (0 != VerifyKernelPreamble(preamble, preamble->preamble_size, rsa)) {
error("Error verifying preamble.\n");
return 1;
}
« no previous file with comments | « firmware/version.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698