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