Index: utility/vbutil_firmware.c |
diff --git a/utility/vbutil_firmware.c b/utility/vbutil_firmware.c |
index cdeed265ce229810aca8f0388250ecde9e694eac..3992a3a8b6d9d61c43819070b169d47d3eab1f41 100644 |
--- a/utility/vbutil_firmware.c |
+++ b/utility/vbutil_firmware.c |
@@ -224,7 +224,7 @@ static int Verify(const char* infile, const char* signpubkey, |
/* Verify preamble */ |
preamble = (VbFirmwarePreambleHeader*)(blob + now); |
- if (0 != VerifyFirmwarePreamble2(preamble, blob_size - now, rsa)) { |
+ if (0 != VerifyFirmwarePreamble(preamble, blob_size - now, rsa)) { |
error("Error verifying preamble.\n"); |
return 1; |
} |
@@ -247,7 +247,7 @@ static int Verify(const char* infile, const char* signpubkey, |
/* TODO: verify body size same as signature size */ |
/* Verify body */ |
- if (0 != VerifyData(fv_data, &preamble->body_signature, rsa)) { |
+ if (0 != VerifyData(fv_data, fv_size, &preamble->body_signature, rsa)) { |
error("Error verifying firmware body.\n"); |
return 1; |
} |