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_KERNEL_UTILITY_H_ | 5 #ifndef VBOOT_REFERENCE_KERNEL_UTILITY_H_ |
6 #define VBOOT_REFERENCE_KERNEL_UTILITY_H_ | 6 #define VBOOT_REFERENCE_KERNEL_UTILITY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 extern "C" { | 10 extern "C" { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Check if all options were specified and sane. | 51 // Check if all options were specified and sane. |
52 // Return true on success, false on failure. | 52 // Return true on success, false on failure. |
53 bool CheckOptions(); | 53 bool CheckOptions(); |
54 | 54 |
55 KernelImage* image_; | 55 KernelImage* image_; |
56 RSAPublicKey* firmware_key_pub_; // Root key used for verification. | 56 RSAPublicKey* firmware_key_pub_; // Root key used for verification. |
57 std::string firmware_key_file_; // Private key for signing the kernel key. | 57 std::string firmware_key_file_; // Private key for signing the kernel key. |
58 std::string firmware_key_pub_file_; | 58 std::string firmware_key_pub_file_; |
59 std::string kernel_key_file_; // Private key for signing the kernel. | 59 std::string kernel_key_file_; // Private key for signing the kernel. |
60 std::string kernel_key_pub_file_; | 60 std::string kernel_key_pub_file_; |
| 61 std::string config_file_; // File containing kernel commandline parameters |
| 62 std::string bootloader_file_; // Embedded bootloader code |
| 63 std::string vmlinuz_file_; // Input vmlinuz to be embedded in signed blob. |
61 | 64 |
62 // Fields of a KernelImage. (read from the command line). | 65 // Fields of a KernelImage. (read from the command line). |
63 int header_version_; | 66 int header_version_; |
64 int firmware_sign_algorithm_; | 67 int firmware_sign_algorithm_; |
65 int kernel_sign_algorithm_; | 68 int kernel_sign_algorithm_; |
66 int kernel_key_version_; | 69 int kernel_key_version_; |
67 int kernel_version_; | 70 int kernel_version_; |
| 71 int padding_; |
68 uint64_t kernel_len_; | 72 uint64_t kernel_len_; |
69 uint8_t* kernel_config_; | 73 uint8_t* kernel_config_; |
70 | 74 |
71 std::string in_file_; | 75 std::string in_file_; |
72 std::string out_file_; | 76 std::string out_file_; |
73 bool is_generate_; // Are we generating a new image? | 77 bool is_generate_; // Are we generating a new image? |
74 bool is_verify_; // Are we just verifying an already signed image? | 78 bool is_verify_; // Are we just verifying an already signed image? |
75 bool is_describe_; // Should we print out description of the image? | 79 bool is_describe_; // Should we print out description of the image? |
76 bool is_only_vblock_; // Show we just output the verification block? | 80 bool is_only_vblock_; // Show we just output the verification block? |
77 }; | 81 }; |
78 | 82 |
79 } // namespace vboot_reference | 83 } // namespace vboot_reference |
80 | 84 |
81 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ | 85 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ |
OLD | NEW |