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

Side by Side Diff: vboot_firmware/linktest/main.c

Issue 2835006: Remove old firmware verification code (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « vboot_firmware/lib/vboot_firmware.c ('k') | vfirmware/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 2
3 #include "cgptlib.h" 3 #include "cgptlib.h"
4 #include "firmware_image_fw.h" 4 #include "firmware_image_fw.h"
5 #include "kernel_image_fw.h" 5 #include "kernel_image_fw.h"
6 #include "load_firmware_fw.h" 6 #include "load_firmware_fw.h"
7 #include "load_kernel_fw.h" 7 #include "load_kernel_fw.h"
8 #include "rollback_index.h" 8 #include "rollback_index.h"
9 #include "tlcl.h" 9 #include "tlcl.h"
10 #include "vboot_common.h" 10 #include "vboot_common.h"
11 #include "vboot_firmware.h"
12 #include "vboot_kernel.h" 11 #include "vboot_kernel.h"
13 12
14 int main(void) 13 int main(void)
15 { 14 {
16 uint16_t x, y; 15 uint16_t x, y;
17 16
18 /* cgptlib.h */ 17 /* cgptlib.h */
19 GptInit(0); 18 GptInit(0);
20 GptNextKernelEntry(0, 0, 0); 19 GptNextKernelEntry(0, 0, 0);
21 GptUpdateKernelEntry(0, 0); 20 GptUpdateKernelEntry(0, 0);
22 21
23 /* firmware_image_fw.h */
24 VerifyFirmwareHeader(0, 0, 0, 0);
25 VerifyFirmwarePreamble(0, 0, 0, 0);
26 VerifyFirmwareData(0, 0, 0, 0, 0);
27 VerifyFirmware(0, 0, 0);
28 GetLogicalFirmwareVersion(0);
29 VerifyFirmwareDriver_f(0, 0, 0, 0, 0);
30
31 /* kernel_image_fw.h */ 22 /* kernel_image_fw.h */
32 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0); 23 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0);
33 VerifyKernelPreamble(0, 0, 0, 0); 24 VerifyKernelPreamble(0, 0, 0, 0);
34 VerifyKernelData(0, 0, 0, 0, 0); 25 VerifyKernelData(0, 0, 0, 0, 0);
35 VerifyKernelHeader(0, 0, 0, 0, 0, 0); 26 VerifyKernelHeader(0, 0, 0, 0, 0, 0);
36 VerifyKernel(0, 0, 0); 27 VerifyKernel(0, 0, 0);
37 GetLogicalKernelVersion(0); 28 GetLogicalKernelVersion(0);
38 29
39 /* load_firmware_fw.h */ 30 /* load_firmware_fw.h */
31 UpdateFirmwareBodyHash(0, 0, 0);
40 LoadFirmware(0); 32 LoadFirmware(0);
41 33
42 /* load_kernel_fw.h */ 34 /* load_kernel_fw.h */
43 LoadKernel(0); 35 LoadKernel(0);
44 36
45 /* rollback_index.h */ 37 /* rollback_index.h */
46 SetupTPM(0, 0); 38 SetupTPM(0, 0);
47 GetStoredVersions(0, &x, &y); 39 GetStoredVersions(0, &x, &y);
48 WriteStoredVersions(0, 0, 0); 40 WriteStoredVersions(0, 0, 0);
49 LockFirmwareVersions(); 41 LockFirmwareVersions();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 PublicKeyToRSA(0); 73 PublicKeyToRSA(0);
82 VerifyData(0, 0, 0); 74 VerifyData(0, 0, 0);
83 VerifyDigest(0, 0, 0); 75 VerifyDigest(0, 0, 0);
84 KeyBlockVerify(0, 0, 0); 76 KeyBlockVerify(0, 0, 0);
85 VerifyFirmwarePreamble2(0, 0, 0); 77 VerifyFirmwarePreamble2(0, 0, 0);
86 VerifyKernelPreamble2(0, 0, 0); 78 VerifyKernelPreamble2(0, 0, 0);
87 79
88 /* vboot_kernel.h */ 80 /* vboot_kernel.h */
89 LoadKernel2(0); 81 LoadKernel2(0);
90 82
91 /* vboot_firmware.h */
92 UpdateFirmwareBodyHash(0, 0, 0);
93 LoadFirmware2(0);
94
95 return 0; 83 return 0;
96 } 84 }
OLDNEW
« no previous file with comments | « vboot_firmware/lib/vboot_firmware.c ('k') | vfirmware/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698