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

Side by Side Diff: src/platform/vboot_reference/utils/firmware_utility.cc

Issue 1593002: Revert "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 // Utility for manipulating verified boot firmware images. 5 // Utility for manipulating verified boot firmware images.
6 // 6 //
7 7
8 #include "firmware_utility.h" 8 #include "firmware_utility.h"
9 9
10 #include <errno.h> 10 #include <errno.h>
11 #include <getopt.h> 11 #include <getopt.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 #include <stdint.h> // Needed for UINT16_MAX. 13 #include <stdint.h> // Needed for UINT16_MAX.
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <unistd.h> 15 #include <unistd.h>
16 16
17 #include <iostream> 17 #include <iostream>
18 18
19 extern "C" { 19 extern "C" {
20 #include "cryptolib.h"
21 #include "file_keys.h" 20 #include "file_keys.h"
22 #include "firmware_image.h" 21 #include "firmware_image.h"
22 #include "padding.h"
23 #include "rsa_utility.h"
24 #include "sha_utility.h"
23 #include "utility.h" 25 #include "utility.h"
24 } 26 }
25 27
26 extern int errno; 28 extern int errno;
27 using std::cerr; 29 using std::cerr;
28 30
29 namespace vboot_reference { 31 namespace vboot_reference {
30 32
31 FirmwareUtility::FirmwareUtility(): 33 FirmwareUtility::FirmwareUtility():
32 image_(NULL), 34 image_(NULL),
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 306 }
305 if (fu.is_verify()) { 307 if (fu.is_verify()) {
306 cerr << "Verification "; 308 cerr << "Verification ";
307 if (fu.VerifySignedImage()) 309 if (fu.VerifySignedImage())
308 cerr << "SUCCESS.\n"; 310 cerr << "SUCCESS.\n";
309 else 311 else
310 cerr << "FAILURE.\n"; 312 cerr << "FAILURE.\n";
311 } 313 }
312 return 0; 314 return 0;
313 } 315 }
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/utils/firmware_image_fw.c ('k') | src/platform/vboot_reference/utils/kernel_image.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698