diff options
Diffstat (limited to 'tests/openpgp/sigs-dsa.test')
-rwxr-xr-x | tests/openpgp/sigs-dsa.test | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/openpgp/sigs-dsa.test b/tests/openpgp/sigs-dsa.test index 8b3b14f..4ba43ac 100755 --- a/tests/openpgp/sigs-dsa.test +++ b/tests/openpgp/sigs-dsa.test @@ -12,16 +12,22 @@ #info Checking DSA signatures (default digest algo) for i in $plain_files $data_files; do - $GPG $dsa_keyrings -s -o x --yes -u $dsa_usrname1 $i - $GPG $dsa_keyrings -o y --yes x + $GPG -s -o x --yes -u $dsa_usrname1 $i + $GPG -o y --yes x cmp $i y || error "$i: mismatch" done -for da in ripemd160 sha1; do +algos="sha1" +if have_hash_algo "RIPEMD160"; then + algos="ripemd160 $algos" +else + echo "Hash algorithm RIPEMD160 is not installed (not an error)" +fi + +for da in $algos; do for i in $plain_files; do - $GPG $dsa_keyrings --digest-algo $da \ - -s -o x --yes -u $dsa_usrname1 $i - $GPG $dsa_keyrings -o y --yes x + $GPG --digest-algo $da -s -o x --yes -u $dsa_usrname1 $i + $GPG -o y --yes x cmp $i y || error "$i: mismatch" # process only the first one break |