Oops. Pass the correct args to Verify* functions.

Change-Id: I08c7d702d97de0fecb8c0db8d63f479dd40f7723

Review URL: http://codereview.chromium.org/3155030
This commit is contained in:
Bill Richardson
2010-08-19 08:27:31 -07:00
parent 0697e3f0cf
commit 4be36c4974
2 changed files with 3 additions and 4 deletions

View File

@@ -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;
}