3
3
. $srcdir/defs.inc || exit 3
5
#info Checking signatures
6
5
for i in $plain_files $data_files; do
7
6
echo "$usrpass1" | $GPG --passphrase-fd 0 -s -o x --yes $i
9
8
cmp $i y || error "$i: mismatch"
12
# Using the DSA sig key - only 160 bit hashes
13
for da in ripemd160 sha1 ; do
14
for i in $plain_files; do
15
echo "$usrpass1" | $GPG --passphrase-fd 0 --digest-algo $da \
18
cmp $i y || error "$i: mismatch"
19
# process only the first one
24
# TODO: add the new SHAs here once we allow them to be used in new
27
if have_pubkey_algo "RSA"; then
28
# Using the RSA sig key - all hashes
29
hash_algo_list="ripemd160 sha1 md5"
30
if have_hash_algo "SHA224"; then
31
hash_algo_list="$hash_algo_list sha224"
33
if have_hash_algo "SHA256"; then
34
hash_algo_list="$hash_algo_list sha256"
36
if have_hash_algo "SHA384"; then
37
hash_algo_list="$hash_algo_list sha384"
39
if have_hash_algo "SHA512"; then
40
hash_algo_list="$hash_algo_list sha512"
43
for da in $hash_algo_list ; do
11
for da in `all_hash_algos` ; do
14
# RSA key, so any hash is okay
15
if have_pubkey_algo "RSA"; then
44
16
for i in $plain_files; do
45
17
$GPG -u $usrname3 --digest-algo $da -s -o x --yes $i
48
20
# process only the first one
25
# Using the DSA sig key - only 160 bit or larger hashes
26
if test $da != "MD5"; then
27
for i in $plain_files; do
28
echo "$usrpass1" | $GPG --passphrase-fd 0 --digest-algo $da \
31
cmp $i y || error "$i: mismatch"
32
# process only the first one