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

Side by Side Diff: src/platform/vboot_reference/tests/test_common.h

Issue 1320010: VBoot Reference: Add kernel rollback prevention and choosing logic. (Closed)
Patch Set: fix priority in test case Created 10 years, 9 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 */ 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
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_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/tests/rollback_index_mock.c ('k') | src/platform/vboot_reference/tests/test_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698