mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Oops. Pass the correct args to Verify* functions.
Change-Id: I08c7d702d97de0fecb8c0db8d63f479dd40f7723 Review URL: http://codereview.chromium.org/3155030
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
char* VbootVersion = "VBOOv=b6f38903";
|
char* VbootVersion = "VBOOv=753f70b7";
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
Debug("Current buf offset is at 0x%" PRIx64 " bytes\n", current_buf_offset);
|
||||||
|
|
||||||
/* Check the key block (hash only) */
|
/* 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");
|
error("Error verifying key block.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -237,7 +237,7 @@ static int Verify(const char* filename, const char* vblock_file,
|
|||||||
error("Error parsing data key.\n");
|
error("Error parsing data key.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (0 != VerifyKernelPreamble(preamble, file_size, rsa)) {
|
if (0 != VerifyKernelPreamble(preamble, preamble->preamble_size, rsa)) {
|
||||||
error("Error verifying preamble.\n");
|
error("Error verifying preamble.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user