summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/encrypt-dsa.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openpgp/encrypt-dsa.test')
-rwxr-xr-xtests/openpgp/encrypt-dsa.test34
1 files changed, 11 insertions, 23 deletions
diff --git a/tests/openpgp/encrypt-dsa.test b/tests/openpgp/encrypt-dsa.test
index 4b9da35ff..01fe33aa8 100755
--- a/tests/openpgp/encrypt-dsa.test
+++ b/tests/openpgp/encrypt-dsa.test
@@ -1,4 +1,12 @@
#!/bin/sh
+# Copyright 1998,1999,2000,2001,2002,2003,2004,2005,2006,
+# 2007 Free Software Foundation, Inc.
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved. This file is
+# distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY, to the extent permitted by law; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
. $srcdir/defs.inc || exit 3
@@ -9,29 +17,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 +26,4 @@ for ca in $algos ; do
cmp $i y || error "$i: mismatch"
done
done
+echo_n "| "