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

Side by Side Diff: src/platform/vboot_reference/utility/include/firmware_utility.h

Issue 2366004: Add --subkey_in and --subkey_out options to firmware signing utility. (Closed) Base URL: ssh://git@gitrw.chromium.org/chromiumos
Patch Set: Created 10 years, 7 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 #ifndef VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ 5 #ifndef VBOOT_REFERENCE_FIRMWARE_UTILITY_H_
6 #define VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ 6 #define VBOOT_REFERENCE_FIRMWARE_UTILITY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class FirmwareImage; 10 class FirmwareImage;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private: 47 private:
48 48
49 // Check if all options were specified and sane. 49 // Check if all options were specified and sane.
50 // Return true on success, false on failure. 50 // Return true on success, false on failure.
51 bool CheckOptions(); 51 bool CheckOptions();
52 52
53 FirmwareImage* image_; 53 FirmwareImage* image_;
54 RSAPublicKey* root_key_pub_; 54 RSAPublicKey* root_key_pub_;
55 std::string root_key_file_; 55 std::string root_key_file_;
56 std::string root_key_pub_file_; 56 std::string root_key_pub_file_;
57 int firmware_version_;
58 std::string firmware_key_file_; 57 std::string firmware_key_file_;
59 std::string firmware_key_pub_file_; 58 std::string firmware_key_pub_file_;
59 std::string subkey_in_file_; // Existing key signature header.
60 std::string in_file_;
61 std::string out_file_;
60 int firmware_key_version_; 62 int firmware_key_version_;
61 int firmware_sign_algorithm_; 63 int firmware_sign_algorithm_;
62 std::string in_file_; 64 int firmware_version_;
63 std::string out_file_;
64 bool is_generate_; // Are we generating a new image? 65 bool is_generate_; // Are we generating a new image?
65 bool is_verify_; // Are we just verifying an already signed image? 66 bool is_verify_; // Are we just verifying an already signed image?
66 bool is_describe_; // Should we print out description of the image? 67 bool is_describe_; // Should we print out description of the image?
67 bool is_only_vblock_; // Should we just output the verification block? 68 bool is_only_vblock_; // Should we just output the verification block?
69 bool is_subkey_out_; // Should we just output the subkey header?
68 }; 70 };
69 71
70 } // namespace vboot_reference 72 } // namespace vboot_reference
71 73
72 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ 74 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/utility/firmware_utility.cc ('k') | src/platform/vboot_reference/utility/kernel_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698