Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1663)

Unified Diff: src/platform/vboot_reference/vboot_firmware/include/kernel_image_fw.h

Issue 2327001: VerifyKernelHeader() fills a KernelImage* (Closed) Base URL: ssh://gitrw.chromium.org/chromiumos
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/vboot_reference/vboot_firmware/lib/include/stateful_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*
« no previous file with comments | « no previous file | src/platform/vboot_reference/vboot_firmware/lib/include/stateful_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698