aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/encrypt-dsa.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openpgp/encrypt-dsa.scm')
-rwxr-xr-xtests/openpgp/encrypt-dsa.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/openpgp/encrypt-dsa.scm b/tests/openpgp/encrypt-dsa.scm
new file mode 100755
index 000000000..f1d2e18f4
--- /dev/null
+++ b/tests/openpgp/encrypt-dsa.scm
@@ -0,0 +1,28 @@
+#!/usr/bin/env gpgscm
+
+(load (with-path "defs.scm"))
+
+(for-each-p
+ "Checking encryption using DSA"
+ (lambda (source)
+ (tr:do
+ (tr:open source)
+ (tr:gpg "" `(--yes --encrypt --recipient ,dsa-usrname2))
+ (tr:gpg "" '(--yes))
+ (tr:assert-identity source)))
+ (append plain-files data-files))
+
+(for-each-p
+ "Checking encryption using DSA and a specific cipher algorithm"
+ (lambda (cipher)
+ (for-each-p
+ ""
+ (lambda (source)
+ (tr:do
+ (tr:open source)
+ (tr:gpg "" `(--yes --encrypt --recipient ,dsa-usrname2
+ --cipher-algo ,cipher))
+ (tr:gpg "" '(--yes))
+ (tr:assert-identity source)))
+ (append plain-files data-files)))
+ all-cipher-algos)