Test problems:
1. Algorithm name returned by gpg is uppercase and script checks for lowercase
name
2. Incorrect algorithm matching (eg., idea for BLOWFISH)
Fix:
--- checks/conventional.test.orig 2003-12-31 12:00:35.000000000 -0700
+++ checks/conventional.test
@@ -11,26 +11,30 @@ 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
--
John R. Shannon
john@johnrshannon.com
john.r.shannon@saic.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org
1. Algorithm name returned by gpg is uppercase and script checks for lowercase
name
2. Incorrect algorithm matching (eg., idea for BLOWFISH)
Fix:
--- checks/conventional.test.orig 2003-12-31 12:00:35.000000000 -0700
+++ checks/conventional.test
@@ -11,26 +11,30 @@ 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
--
John R. Shannon
john@johnrshannon.com
john.r.shannon@saic.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org