mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
29 lines
665 B
Scheme
29 lines
665 B
Scheme
|
#!/usr/bin/env gpgscm
|
||
|
|
||
|
(load (with-path "defs.scm"))
|
||
|
|
||
|
(for-each-p
|
||
|
"Checking encryption"
|
||
|
(lambda (source)
|
||
|
(tr:do
|
||
|
(tr:open source)
|
||
|
(tr:gpg "" `(--yes --encrypt --recipient ,usrname2))
|
||
|
(tr:gpg "" '(--yes))
|
||
|
(tr:assert-identity source)))
|
||
|
(append plain-files data-files))
|
||
|
|
||
|
(for-each-p
|
||
|
"Checking encryption using a specific cipher algorithm"
|
||
|
(lambda (cipher)
|
||
|
(for-each-p
|
||
|
""
|
||
|
(lambda (source)
|
||
|
(tr:do
|
||
|
(tr:open source)
|
||
|
(tr:gpg "" `(--yes --encrypt --recipient ,usrname2
|
||
|
--cipher-algo ,cipher))
|
||
|
(tr:gpg "" '(--yes))
|
||
|
(tr:assert-identity source)))
|
||
|
(append plain-files data-files)))
|
||
|
all-cipher-algos)
|