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

Unified Diff: src/platform/vboot_reference/include/kernel_image.h

Issue 1430001: VBoot Reference: Fix splicing bugs in Firmware and Kernel verification. (Closed)
Patch Set: . Created 10 years, 9 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
Index: src/platform/vboot_reference/include/kernel_image.h
diff --git a/src/platform/vboot_reference/include/kernel_image.h b/src/platform/vboot_reference/include/kernel_image.h
index 6adf3f88927ed9290e799f54c26ec38b2cb34a70..f8bddff4a1cc976d53a1c2d98684c3c8eeb9bc7a 100644
--- a/src/platform/vboot_reference/include/kernel_image.h
+++ b/src/platform/vboot_reference/include/kernel_image.h
@@ -63,7 +63,9 @@ typedef struct KernelImage {
/* The kernel signature comes first as it may allow us to parallelize
* the kernel data fetch and RSA public key operation.
*/
- uint8_t* kernel_signature; /* Signature on [kernel_data]. */
+ uint8_t* kernel_signature; /* Signature on the concatenation of
+ * [kernel_version], [options] and
+ * [kernel_data]. */
uint8_t* kernel_data; /* Actual kernel data. */
} KernelImage;
@@ -171,6 +173,7 @@ int VerifyKernelConfig(RSAPublicKey* kernel_sign_key,
* Return 0 on success, error code on failure.
*/
int VerifyKernelData(RSAPublicKey* kernel_sign_key,
+ const uint8_t* kernel_config_start,
const uint8_t* kernel_data_start,
int kernel_len,
int algorithm);

Powered by Google App Engine
This is Rietveld 408576698