aboutsummaryrefslogtreecommitdiffstats
path: root/checks/encrypt-dsa.test
diff options
context:
space:
mode:
Diffstat (limited to 'checks/encrypt-dsa.test')
-rwxr-xr-xchecks/encrypt-dsa.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/checks/encrypt-dsa.test b/checks/encrypt-dsa.test
new file mode 100755
index 000000000..d506e8890
--- /dev/null
+++ b/checks/encrypt-dsa.test
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+. defs.inc || exit 3
+
+#info Checking encryption
+for i in $plain_files $data_files ; do
+ ./run-gpg $dsa_keyrings -e -o x --yes -r "$dsa_usrname2" $i
+ ./run-gpg $dsa_keyrings -o y --yes x
+ cmp $i y || error "$i: mismatch"
+done
+
+# and with cast
+for i in $plain_files $data_files ; do
+ ./run-gpg $dsa_keyrings --cipher-algo cast -e \
+ -o x --yes -r "$dsa_usrname2" $i
+ ./run-gpg $dsa_keyrings -o y --yes x
+ cmp $i y || error "$i: mismatch"
+done
+