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

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

Issue 1752013: Vboot Reference: Make kernel signing utility more flexible. (Closed)
Patch Set: review fixes 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
« no previous file with comments | « no previous file | src/platform/vboot_reference/utility/include/firmware_utility.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 18 matching lines...) Expand all
29 namespace vboot_reference { 29 namespace vboot_reference {
30 30
31 FirmwareUtility::FirmwareUtility(): 31 FirmwareUtility::FirmwareUtility():
32 image_(NULL), 32 image_(NULL),
33 root_key_pub_(NULL), 33 root_key_pub_(NULL),
34 firmware_version_(-1), 34 firmware_version_(-1),
35 firmware_key_version_(-1), 35 firmware_key_version_(-1),
36 firmware_sign_algorithm_(-1), 36 firmware_sign_algorithm_(-1),
37 is_generate_(false), 37 is_generate_(false),
38 is_verify_(false), 38 is_verify_(false),
39 is_describe_(false) { 39 is_describe_(false),
40 is_only_vblock_(false) {
40 } 41 }
41 42
42 FirmwareUtility::~FirmwareUtility() { 43 FirmwareUtility::~FirmwareUtility() {
43 RSAPublicKeyFree(root_key_pub_); 44 RSAPublicKeyFree(root_key_pub_);
44 FirmwareImageFree(image_); 45 FirmwareImageFree(image_);
45 } 46 }
46 47
47 void FirmwareUtility::PrintUsage(void) { 48 void FirmwareUtility::PrintUsage(void) {
48 cerr << 49 cerr <<
49 "Utility to generate/verify a verified boot firmware image\n\n" 50 "Utility to generate/verify a verified boot firmware image\n\n"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 312 }
312 if (fu.is_verify()) { 313 if (fu.is_verify()) {
313 cerr << "Verification "; 314 cerr << "Verification ";
314 if (fu.VerifySignedImage()) 315 if (fu.VerifySignedImage())
315 cerr << "SUCCESS.\n"; 316 cerr << "SUCCESS.\n";
316 else 317 else
317 cerr << "FAILURE.\n"; 318 cerr << "FAILURE.\n";
318 } 319 }
319 return 0; 320 return 0;
320 } 321 }
OLDNEW
« no previous file with comments | « no previous file | src/platform/vboot_reference/utility/include/firmware_utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698