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

Side by Side Diff: src/platform/vboot_reference/include/firmware_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 firmware image. 5 * Data structure and API definitions for a verified boot firmware image.
6 * (Firmware Portion) 6 * (Firmware Portion)
7 */ 7 */
8 8
9 #ifndef VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_ 9 #ifndef VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_
10 #define VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_ 10 #define VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 #include "rsa.h" 13 #include "cryptolib.h"
14 #include "sha.h"
15 14
16 #define FIRMWARE_MAGIC "CHROMEOS" 15 #define FIRMWARE_MAGIC "CHROMEOS"
17 #define FIRMWARE_MAGIC_SIZE 8 16 #define FIRMWARE_MAGIC_SIZE 8
18 #define FIRMWARE_PREAMBLE_SIZE 8 17 #define FIRMWARE_PREAMBLE_SIZE 8
19 18
20 /* RSA 8192 and SHA-512. */ 19 /* RSA 8192 and SHA-512. */
21 #define ROOT_SIGNATURE_ALGORITHM 11 20 #define ROOT_SIGNATURE_ALGORITHM 11
22 #define ROOT_SIGNATURE_ALGORITHM_STRING "11" 21 #define ROOT_SIGNATURE_ALGORITHM_STRING "11"
23 22
24 typedef struct FirmwareImage { 23 typedef struct FirmwareImage {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 * BOOT_FIRMWARE_A_CONTINUE Boot from Firmware A 132 * BOOT_FIRMWARE_A_CONTINUE Boot from Firmware A
134 * BOOT_FIRMWARE_B_CONTINUE Boot from Firmware B 133 * BOOT_FIRMWARE_B_CONTINUE Boot from Firmware B
135 * BOOT_FIRMWARE_RECOVERY_CONTINUE Jump to recovery mode 134 * BOOT_FIRMWARE_RECOVERY_CONTINUE Jump to recovery mode
136 */ 135 */
137 int VerifyFirmwareDriver_f(uint8_t* root_key_blob, 136 int VerifyFirmwareDriver_f(uint8_t* root_key_blob,
138 uint8_t* firmwareA, 137 uint8_t* firmwareA,
139 uint8_t* firmwareB); 138 uint8_t* firmwareB);
140 139
141 140
142 #endif /* VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_ */ 141 #endif /* VBOOT_REFERENCE_FIRMWARE_IMAGE_FW_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/include/file_keys.h ('k') | src/platform/vboot_reference/include/kernel_image_fw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698