diff --git a/tests/openpgp/ChangeLog b/tests/openpgp/ChangeLog index c4179d474..58b95cfb0 100644 --- a/tests/openpgp/ChangeLog +++ b/tests/openpgp/ChangeLog @@ -1,3 +1,9 @@ +2007-05-02 David Shaw + + * conventional.test, encrypt.test, encrypt-dsa.test, + conventional-mdc.test: Fix some broken tests that were only + testing 3DES instead of all available ciphers. + 2007-03-04 David Shaw (wk) * verify.test: Use --allow-multiple-messages instead of diff --git a/tests/openpgp/conventional-mdc.test b/tests/openpgp/conventional-mdc.test index 95a6ba476..b3cf10b3a 100755 --- a/tests/openpgp/conventional-mdc.test +++ b/tests/openpgp/conventional-mdc.test @@ -4,23 +4,23 @@ algos="3des" -if have_cipher_algo "idea"; then +if have_cipher_algo "IDEA"; then algos="$algos idea" fi -if have_cipher_algo "cast5"; then - algos="$algos idea" +if have_cipher_algo "CAST5"; then + algos="$algos cast5" fi -if have_cipher_algo "blowfish"; then - algos="$algos idea" +if have_cipher_algo "BLOWFISH"; then + algos="$algos blowfish" fi -if have_cipher_algo "aes"; then +if have_cipher_algo "AES"; then algos="$algos aes aes192 aes256" fi -if have_cipher_algo "twofish"; then +if have_cipher_algo "TWOFISH"; then algos="$algos twofish" fi diff --git a/tests/openpgp/conventional.test b/tests/openpgp/conventional.test index 2fd273028..8b75c8a50 100755 --- a/tests/openpgp/conventional.test +++ b/tests/openpgp/conventional.test @@ -11,6 +11,10 @@ done algos="3des" +if have_cipher_algo "IDEA"; then + algos="$algos idea" +fi + if have_cipher_algo "CAST5"; then algos="$algos cast5" fi diff --git a/tests/openpgp/encrypt-dsa.test b/tests/openpgp/encrypt-dsa.test index 0c6333c21..4b9da35ff 100755 --- a/tests/openpgp/encrypt-dsa.test +++ b/tests/openpgp/encrypt-dsa.test @@ -11,23 +11,23 @@ done algos="3des" -if have_cipher_algo "idea"; then +if have_cipher_algo "IDEA"; then algos="$algos idea" fi -if have_cipher_algo "cast5"; then - algos="$algos idea" +if have_cipher_algo "CAST5"; then + algos="$algos cast5" fi -if have_cipher_algo "blowfish"; then - algos="$algos idea" +if have_cipher_algo "BLOWFISH"; then + algos="$algos blowfish" fi -if have_cipher_algo "aes"; then +if have_cipher_algo "AES"; then algos="$algos aes aes192 aes256" fi -if have_cipher_algo "twofish"; then +if have_cipher_algo "TWOFISH"; then algos="$algos twofish" fi diff --git a/tests/openpgp/encrypt.test b/tests/openpgp/encrypt.test index 44f26a17a..35f35d0e5 100755 --- a/tests/openpgp/encrypt.test +++ b/tests/openpgp/encrypt.test @@ -11,23 +11,23 @@ done algos="3des" -if have_cipher_algo "idea"; then +if have_cipher_algo "IDEA"; then algos="$algos idea" fi -if have_cipher_algo "cast5"; then - algos="$algos idea" +if have_cipher_algo "CAST5"; then + algos="$algos cast5" fi -if have_cipher_algo "blowfish"; then - algos="$algos idea" +if have_cipher_algo "BLOWFISH"; then + algos="$algos blowfish" fi -if have_cipher_algo "aes"; then +if have_cipher_algo "AES"; then algos="$algos aes aes192 aes256" fi -if have_cipher_algo "twofish"; then +if have_cipher_algo "TWOFISH"; then algos="$algos twofish" fi