1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
gnupg/checks/sigs.test
1998-10-25 19:00:01 +00:00

27 lines
639 B
Bash
Executable File

#!/bin/sh
. $srcdir/defs.inc || exit 3
#info Checking signatures
for i in $plain_files $data_files; do
echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 -s -o x --yes $i
$srcdir/run-gpg -o y --yes x
cmp $i y || error "$i: mismatch"
done
hash_algo_list="ripemd160 sha1 md5"
if have_hash_algo "TIGER"; then
hash_algo_list="$hash_algo_list tiger"
fi
for da in $hash_algo_list ; do
for i in $plain_files; do
echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --digest-algo $da \
-s -o x --yes $i
$srcdir/run-gpg -o y --yes x
cmp $i y || error "$i: mismatch"
# process only the first one
break
done
done