2006-05-22 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / checks / sigs-dsa.test
blob2294cf55ac0b32ea3695b9ad970b6e3a9d1f9ec7
1 #!/bin/sh
3 . $srcdir/defs.inc || exit 3
5 #info Checking DSA signatures (default digest algo)
6 for i in $plain_files $data_files; do
7 $GPG $dsa_keyrings -s -o x --yes -u $dsa_usrname1 $i
8 $GPG $dsa_keyrings -o y --yes x
9 cmp $i y || error "$i: mismatch"
10 done
12 for da in ripemd160 sha1; do
13 for i in $plain_files; do
14 $GPG $dsa_keyrings --digest-algo $da \
15 -s -o x --yes -u $dsa_usrname1 $i
16 $GPG $dsa_keyrings -o y --yes x
17 cmp $i y || error "$i: mismatch"
18 # process only the first one
19 break
20 done
21 done