diff options
Diffstat (limited to 'checks/conventional.test')
-rwxr-xr-x | checks/conventional.test | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/checks/conventional.test b/checks/conventional.test index 87aeb9c56..255f6ce0b 100755 --- a/checks/conventional.test +++ b/checks/conventional.test @@ -2,10 +2,6 @@ . $srcdir/defs.inc || exit 3 -# temp. hack cause the format for 128 bit blocksize messages may change -GNUPG_ENABLE_TWOFISH=1 -export GNUPG_ENABLE_TWOFISH - #info Checking conventional encryption for i in plain-2 data-32000 ; do echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i @@ -13,7 +9,29 @@ for i in plain-2 data-32000 ; do cmp $i y || error "$i: mismatch" done -for a in cast5 3des twofish; do +algos="3des" + +if have_cipher_algo "idea"; then + algos="$algos idea" +fi + +if have_cipher_algo "cast5"; then + algos="$algos idea" +fi + +if have_cipher_algo "blowfish"; then + algos="$algos idea" +fi + +if have_cipher_algo "aes"; then + algos="$algos aes aes192 aes256" +fi + +if have_cipher_algo "twofish"; then + algos="$algos twofish" +fi + +for a in $algos; do for i in plain-1 data-80000 ; do echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \ --cipher-algo $a -c -o x --yes $i @@ -21,4 +39,3 @@ for a in cast5 3des twofish; do cmp $i y || error "$i: ($a) mismatch" done done - |