OLD | NEW |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Check if all options were specified and sane. | 45 // Check if all options were specified and sane. |
46 // Return true on success, false on failure. | 46 // Return true on success, false on failure. |
47 bool CheckOptions(); | 47 bool CheckOptions(); |
48 | 48 |
49 FirmwareImage* image_; | 49 FirmwareImage* image_; |
50 RSAPublicKey* root_key_pub_; | 50 RSAPublicKey* root_key_pub_; |
51 std::string root_key_file_; | 51 std::string root_key_file_; |
52 std::string root_key_pub_file_; | 52 std::string root_key_pub_file_; |
53 int firmware_version_; | 53 int firmware_version_; |
54 std::string firmware_sign_key_file_; | 54 std::string firmware_key_file_; |
55 std::string firmware_sign_key_pub_file_; | 55 std::string firmware_key_pub_file_; |
56 int firmware_key_version_; | 56 int firmware_key_version_; |
57 int firmware_sign_algorithm_; | 57 int firmware_sign_algorithm_; |
58 std::string in_file_; | 58 std::string in_file_; |
59 std::string out_file_; | 59 std::string out_file_; |
60 bool is_generate_; // Are we generating a new image? | 60 bool is_generate_; // Are we generating a new image? |
61 bool is_verify_; // Are we just verifying an already signed image? | 61 bool is_verify_; // Are we just verifying an already signed image? |
62 }; | 62 }; |
63 | 63 |
64 } // namespace vboot_reference | 64 } // namespace vboot_reference |
65 | 65 |
66 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ | 66 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ |
OLD | NEW |