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

Side by Side Diff: src/platform/vboot_reference/include/kernel_image_fw.h

Issue 1574005: VBoot Reference: Refactor Part 2 - Crypto Libraries (Closed)
Patch Set: . Created 10 years, 8 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 unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Data structure and API definitions for a verified boot kernel image. 5 * Data structure and API definitions for a verified boot kernel image.
6 * (Firmware Portion) 6 * (Firmware Portion)
7 */ 7 */
8 8
9 #ifndef VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_ 9 #ifndef VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_
10 #define VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_ 10 #define VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 #include "rsa.h" 13
14 #include "sha.h" 14 #include "cryptolib.h"
15 15
16 #define KERNEL_MAGIC "CHROMEOS" 16 #define KERNEL_MAGIC "CHROMEOS"
17 #define KERNEL_MAGIC_SIZE 8 17 #define KERNEL_MAGIC_SIZE 8
18 #define KERNEL_CMD_LINE_SIZE 4096 18 #define KERNEL_CMD_LINE_SIZE 4096
19 19
20 #define DEV_MODE_ENABLED 1 20 #define DEV_MODE_ENABLED 1
21 #define DEV_MODE_DISABLED 0 21 #define DEV_MODE_DISABLED 0
22 22
23 /* Kernel config file options according to the Chrome OS drive map design. */ 23 /* Kernel config file options according to the Chrome OS drive map design. */
24 typedef struct kconfig_options { 24 typedef struct kconfig_options {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 * BOOT_KERNEL_A_CONTINUE Boot from Kenrel A 174 * BOOT_KERNEL_A_CONTINUE Boot from Kenrel A
175 * BOOT_KERNEL_B_CONTINUE Boot from Kernel B 175 * BOOT_KERNEL_B_CONTINUE Boot from Kernel B
176 * BOOT_KERNEL_RECOVERY_CONTINUE Jump to recovery mode 176 * BOOT_KERNEL_RECOVERY_CONTINUE Jump to recovery mode
177 */ 177 */
178 int VerifyKernelDriver_f(uint8_t* firmware_key_blob, 178 int VerifyKernelDriver_f(uint8_t* firmware_key_blob,
179 kernel_entry* kernelA, 179 kernel_entry* kernelA,
180 kernel_entry* kernelB, 180 kernel_entry* kernelB,
181 int dev_mode); 181 int dev_mode);
182 182
183 #endif /* VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_ */ 183 #endif /* VBOOT_REFERENCE_KERNEL_IMAGE_FW_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/include/firmware_image_fw.h ('k') | src/platform/vboot_reference/include/padding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698