diff options
author | Kenny Root <kroot@google.com> | 2013-10-14 23:04:55 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-10-14 23:04:56 +0200 |
commit | f4a6ab27b335b69fbc419a9c1ef263004b561265 (patch) | |
tree | da4a744e642f5014c3a1085097590bd4a5997f1c /verifier_test.sh | |
parent | Merge "verifier: update to support certificates using SHA-256" (diff) | |
parent | Add support for ECDSA signatures (diff) | |
download | android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar.gz android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar.bz2 android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar.lz android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar.xz android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.tar.zst android_bootable_recovery-f4a6ab27b335b69fbc419a9c1ef263004b561265.zip |
Diffstat (limited to 'verifier_test.sh')
-rwxr-xr-x | verifier_test.sh | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/verifier_test.sh b/verifier_test.sh index 65f77f401..4761cef4a 100755 --- a/verifier_test.sh +++ b/verifier_test.sh @@ -81,20 +81,30 @@ expect_fail unsigned.zip expect_fail jarsigned.zip # success cases -expect_succeed otasigned.zip +expect_succeed otasigned.zip -e3 expect_succeed otasigned_f4.zip -f4 -expect_succeed otasigned_sha256.zip -sha256 -expect_succeed otasigned_f4_sha256.zip -sha256 -f4 +expect_succeed otasigned_sha256.zip -e3 -sha256 +expect_succeed otasigned_f4_sha256.zip -f4 -sha256 +expect_succeed otasigned_ecdsa_sha256.zip -ec -sha256 + +# success with multiple keys +expect_succeed otasigned.zip -f4 -e3 +expect_succeed otasigned_f4.zip -ec -f4 +expect_succeed otasigned_sha256.zip -ec -e3 -e3 -sha256 +expect_succeed otasigned_f4_sha256.zip -ec -sha256 -e3 -f4 -sha256 +expect_succeed otasigned_ecdsa_sha256.zip -f4 -sha256 -e3 -ec -sha256 # verified against different key expect_fail otasigned.zip -f4 -expect_fail otasigned_f4.zip +expect_fail otasigned_f4.zip -e3 +expect_fail otasigned_ecdsa_sha256.zip -e3 -sha256 # verified against right key but wrong hash algorithm -expect_fail otasigned.zip -sha256 -expect_fail otasigned_f4.zip -sha256 -f4 +expect_fail otasigned.zip -e3 -sha256 +expect_fail otasigned_f4.zip -f4 -sha256 expect_fail otasigned_sha256.zip expect_fail otasigned_f4_sha256.zip -f4 +expect_fail otasigned_ecdsa_sha256.zip # various other cases expect_fail random.zip |