mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* defs.inc (all_cipher_algos): New function to return all ciphers we
support. This is safer than the previous setup which could hide that some ciphers weren't being tested. Plus, this automatically tests any new ciphers we may add. * conventional.test, encrypt-test, encrypt-dsa.test, conventional-mdc.test: Use it here.
This commit is contained in:
parent
ddfaad29fd
commit
1b488760bb
6 changed files with 27 additions and 102 deletions
|
@ -9,29 +9,8 @@ for i in $plain_files $data_files ; do
|
|||
cmp $i y || error "$i: mismatch"
|
||||
done
|
||||
|
||||
algos="3des"
|
||||
|
||||
if have_cipher_algo "IDEA"; then
|
||||
algos="$algos idea"
|
||||
fi
|
||||
|
||||
if have_cipher_algo "CAST5"; then
|
||||
algos="$algos cast5"
|
||||
fi
|
||||
|
||||
if have_cipher_algo "BLOWFISH"; then
|
||||
algos="$algos blowfish"
|
||||
fi
|
||||
|
||||
if have_cipher_algo "AES"; then
|
||||
algos="$algos aes aes192 aes256"
|
||||
fi
|
||||
|
||||
if have_cipher_algo "TWOFISH"; then
|
||||
algos="$algos twofish"
|
||||
fi
|
||||
|
||||
for ca in $algos ; do
|
||||
for ca in `all_cipher_algos` ; do
|
||||
echo_n "$ca "
|
||||
for i in $plain_files $data_files ; do
|
||||
$GPG $dsa_keyrings --always-trust --cipher-algo $ca -e \
|
||||
-o x --yes -r "$dsa_usrname2" $i
|
||||
|
@ -39,3 +18,4 @@ for ca in $algos ; do
|
|||
cmp $i y || error "$i: mismatch"
|
||||
done
|
||||
done
|
||||
echo_n "| "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue