diff options
author | Gaurav Shah <gauravsh@chromium.org> | 2010-03-26 10:38:08 -0700 |
---|---|---|
committer | Gaurav Shah <gauravsh@chromium.org> | 2010-03-26 10:38:08 -0700 |
commit | a82bf268b273e234c4a50b134020e6064e577231 (patch) | |
tree | 2fbd509fb32933951e7a83d32527c09e1fda93c2 /tests/test_common.h | |
parent | 3199eed3d37fa028c1a5e32d6b61aea00d35bc0c (diff) | |
download | vboot-a82bf268b273e234c4a50b134020e6064e577231.tar.gz |
VBoot Reference: Add kernel rollback prevention and choosing logic.
Also adds tests for kernel rollback prevention.
Review URL: http://codereview.chromium.org/1320010
Diffstat (limited to 'tests/test_common.h')
-rw-r--r-- | tests/test_common.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/test_common.h b/tests/test_common.h index a449bddd..d203d76a 100644 --- a/tests/test_common.h +++ b/tests/test_common.h @@ -50,11 +50,18 @@ uint8_t* GenerateTestKernelBlob(int firmware_sign_algorithm, int kernel_len, const char* firmware_key_file, const char* kernel_key_file); + /* Generates a test firmware image for rollback tests with a given * [firmware_key_version] and [firmware_version]. If [is_corrupt] is 1, * then the image has invalid signatures and will fail verification. */ -uint8_t* GenerateRollbackTestImage(int firmware_key_version, - int firmware_version, - int is_corrupt); +uint8_t* GenerateRollbackTestFirmwareBlob(int firmware_key_version, + int firmware_version, + int is_corrupt); +/* Generates a test kernel iamge for rollback tests with a given + * [kernel_key_version} and [kernel_version]. If [is_corrupt] is 1, + * then the image has invalid signatures and will fail verification. */ +uint8_t* GenerateRollbackTestKernelBlob(int kernel_key_version, + int kernel_version, + int is_corrupt); #endif /* VBOOT_REFERENCE_TEST_COMMON_H_ */ |