diff options
author | Bill Richardson <wfrichar@chromium.org> | 2010-08-09 17:50:14 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2010-08-09 17:50:14 -0700 |
commit | 4f36ef336036e01b0bd2b395dd55e15db0267266 (patch) | |
tree | 4b21ee0d91f3858584908a51efce3ff0569225f2 /tests/devkeys | |
parent | cbaf69658146279a557283f757f39ab8157f7391 (diff) | |
download | vboot-4f36ef336036e01b0bd2b395dd55e15db0267266.tar.gz |
Changes to allow user-signed kernels to be generated.
Make vbutil_keyblock handle unsigned blocks. Also enable --unpack option and
add tests for it.
Modify vbutil_kernel to allow unsigned keyblocks, correct usage message,
and fix the --debug option which was somehow disabled.
Update load_kernel_test to accept /dev/null for the public key, to test
non-signed kernel keyblocks.
Review URL: http://codereview.chromium.org/3124004
Diffstat (limited to 'tests/devkeys')
-rwxr-xr-x | tests/devkeys/create_new_keys.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/devkeys/create_new_keys.sh b/tests/devkeys/create_new_keys.sh index 904c1ceb..29611900 100755 --- a/tests/devkeys/create_new_keys.sh +++ b/tests/devkeys/create_new_keys.sh @@ -24,6 +24,11 @@ function alg_to_keylen { } # Emit .vbpubk and .vbprivk using given basename and algorithm +# NOTE: This function also appears in ../../utility/dev_make_keypair. Making +# the two implementations the same would require some common.sh, which is more +# likely to cause problems than just keeping an eye out for any differences. If +# you feel the need to change this file, check the history of that other file +# to see what may need updating here too. function make_pair { local base=$1 local alg=$2 @@ -101,10 +106,10 @@ make_pair recovery_kernel_data_key 11 # since it's never even checked during Recovery mode. make_keyblock firmware 7 firmware_data_key root_key -# Create the recovery kernel keyblock for use only in Recovery mode. +# Create the recovery kernel keyblock for use only in Recovery mode. make_keyblock recovery_kernel 11 recovery_kernel_data_key recovery_key -# Create the normal kernel keyblock for use only in Normal mode. +# Create the normal kernel keyblock for use only in Normal mode. make_keyblock kernel 7 kernel_data_key kernel_subkey # Create the installer keyblock for use in Developer + Recovery mode |