Index: src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h |
diff --git a/src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h b/src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h |
index 03bcf858e2112681a2e29ff69f848594efa092f9..8269bbdc17a443db7b697a02cd266a7a61833f45 100644 |
--- a/src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h |
+++ b/src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h |
@@ -137,17 +137,20 @@ int VerifyKernelData(RSAPublicKey* kernel_sign_key, |
*/ |
int VerifyKernelHeader(const uint8_t* firmware_key_blob, |
const uint8_t* kernel_header_blob, |
+ uint64_t kernel_header_blob_len, |
const int dev_mode, |
- const uint8_t** expected_kernel_signature, |
- RSAPublicKey** kernel_sign_key, |
- int* kernel_sign_algorithm, |
- uint64_t* kernel_len); |
+ KernelImage *image, |
+ RSAPublicKey** kernel_sign_key); |
/* Performs a chained verify of the kernel blob [kernel_blob]. If |
* [dev_mode] is 0 [inactive], then the pre-processed public signing key |
* [root_key_blob] is used to verify the signature of the signing key, |
* else the check is skipped. |
* |
+ * On success, fills in image with the kernel header and preamble fields. |
+ * Note that pointers in the image directly point into the input |
+ * kernel_header_blob. image->kernel_data is set to NULL, since it's not |
+ * part of the header and preamble data itself. |
* |
* Returns 0 on success, error code on failure. |
* |