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 */ | 5 */ |
6 | 6 |
7 #ifndef VBOOT_REFERENCE_TEST_COMMON_H_ | 7 #ifndef VBOOT_REFERENCE_TEST_COMMON_H_ |
8 #define VBOOT_REFERENCE_TEST_COMMON_H_ | 8 #define VBOOT_REFERENCE_TEST_COMMON_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const char* firmware_key_file, | 43 const char* firmware_key_file, |
44 const char* kernel_key_file); | 44 const char* kernel_key_file); |
45 uint8_t* GenerateTestKernelBlob(int firmware_sign_algorithm, | 45 uint8_t* GenerateTestKernelBlob(int firmware_sign_algorithm, |
46 int kernel_sign_algorithm, | 46 int kernel_sign_algorithm, |
47 const uint8_t* kernel_sign_key, | 47 const uint8_t* kernel_sign_key, |
48 int kernel_key_version, | 48 int kernel_key_version, |
49 int kernel_version, | 49 int kernel_version, |
50 int kernel_len, | 50 int kernel_len, |
51 const char* firmware_key_file, | 51 const char* firmware_key_file, |
52 const char* kernel_key_file); | 52 const char* kernel_key_file); |
| 53 |
53 /* Generates a test firmware image for rollback tests with a given | 54 /* Generates a test firmware image for rollback tests with a given |
54 * [firmware_key_version] and [firmware_version]. If [is_corrupt] is 1, | 55 * [firmware_key_version] and [firmware_version]. If [is_corrupt] is 1, |
55 * then the image has invalid signatures and will fail verification. */ | 56 * then the image has invalid signatures and will fail verification. */ |
56 uint8_t* GenerateRollbackTestImage(int firmware_key_version, | 57 uint8_t* GenerateRollbackTestFirmwareBlob(int firmware_key_version, |
57 int firmware_version, | 58 int firmware_version, |
58 int is_corrupt); | 59 int is_corrupt); |
59 | 60 |
| 61 /* Generates a test kernel iamge for rollback tests with a given |
| 62 * [kernel_key_version} and [kernel_version]. If [is_corrupt] is 1, |
| 63 * then the image has invalid signatures and will fail verification. */ |
| 64 uint8_t* GenerateRollbackTestKernelBlob(int kernel_key_version, |
| 65 int kernel_version, |
| 66 int is_corrupt); |
60 #endif /* VBOOT_REFERENCE_TEST_COMMON_H_ */ | 67 #endif /* VBOOT_REFERENCE_TEST_COMMON_H_ */ |
OLD | NEW |