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

Unified Diff: src/platform/vboot_reference/tests/run_rsa_tests.sh

Issue 660161: Vboot Reference: Add functions to verify signed kernel images. (Closed)
Patch Set: Fix comment. Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/tests/run_rsa_tests.sh
diff --git a/src/platform/vboot_reference/tests/run_rsa_tests.sh b/src/platform/vboot_reference/tests/run_rsa_tests.sh
index 2196ddd7518f55ca5eb495d4dbe1e97244cb507e..3ca1504d8a65928bc67491b94959e379a772ea6a 100755
--- a/src/platform/vboot_reference/tests/run_rsa_tests.sh
+++ b/src/platform/vboot_reference/tests/run_rsa_tests.sh
@@ -4,8 +4,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# Run tests for cryptographic routine implementations - Message digests
-# and RSA Signature verification.
+# Run tests for RSA Signature verification.
return_code=0
hash_algos=( sha1 sha256 sha512 )
@@ -52,23 +51,6 @@ function test_signatures {
let algorithmcounter=algorithmcounter+1
done
done
-}
-
-function test_verification {
- algorithmcounter=0
- for keylen in ${key_lengths[@]}
- do
- for hashalgo in ${hash_algos[@]}
- do
- echo -e "For ${COL_YELLOW}RSA-$keylen and $hashalgo${COL_STOP}:"
- cd ${UTIL_DIR} && ${TEST_DIR}/firmware_image_tests $algorithmcounter \
- ${TEST_DIR}/testkeys/key_rsa8192.pem \
- ${TEST_DIR}/testkeys/key_rsa8192.keyb \
- ${TEST_DIR}/testkeys/key_rsa${keylen}.pem \
- ${TEST_DIR}/testkeys/key_rsa${keylen}.keyb
- let algorithmcounter=algorithmcounter+1
- done
- done
echo -e "Peforming ${COL_YELLOW}PKCS #1 v1.5 Padding Tests${COL_STOP}..."
${TEST_DIR}/rsa_padding_test ${TEST_DIR}/testkeys/rsa_padding_test_pubkey.keyb
}
@@ -107,8 +89,12 @@ echo "Testing signature verification..."
test_signatures
echo
-echo "Testing high-level image verification..."
-test_verification
+echo "Testing high-level firmware image verification..."
+test_firmware_verification
+
+echo
+echo "Testing high-level kernel image verification..."
+test_kernel_verification
echo
echo "Cleaning up..."
« no previous file with comments | « src/platform/vboot_reference/tests/run_image_verification_tests.sh ('k') | src/platform/vboot_reference/utils/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698