Index: firmware/lib/vboot_firmware.c |
diff --git a/firmware/lib/vboot_firmware.c b/firmware/lib/vboot_firmware.c |
index e5d6f79e5a198a7e1c2950398ac3c6b7816488df..307b36214610e778f756099dff759309baffe45f 100644 |
--- a/firmware/lib/vboot_firmware.c |
+++ b/firmware/lib/vboot_firmware.c |
@@ -124,9 +124,9 @@ int LoadFirmware(LoadFirmwareParams* params) { |
/* Verify the preamble, which follows the key block. */ |
preamble = (VbFirmwarePreambleHeader*)((uint8_t*)key_block + |
key_block->key_block_size); |
- if ((0 != VerifyFirmwarePreamble2(preamble, |
- vblock_size - key_block->key_block_size, |
- data_key))) { |
+ if ((0 != VerifyFirmwarePreamble(preamble, |
+ vblock_size - key_block->key_block_size, |
+ data_key))) { |
VBDEBUG(("Preamble verfication failed.\n")); |
RSAPublicKeyFree(data_key); |
continue; |