3 .
$srcdir/defs.inc ||
exit 3
5 #info Checking encryption
6 for i
in $plain_files $data_files ; do
7 $GPG $dsa_keyrings --always-trust -e -o x
--yes -r "$dsa_usrname2" $i
8 $GPG $dsa_keyrings -o y
--yes x
9 cmp $i y || error
"$i: mismatch"
14 if have_cipher_algo
"idea"; then
18 if have_cipher_algo
"cast5"; then
22 if have_cipher_algo
"blowfish"; then
26 if have_cipher_algo
"aes"; then
27 algos
="$algos aes aes192 aes256"
30 if have_cipher_algo
"twofish"; then
31 algos
="$algos twofish"
35 for i
in $plain_files $data_files ; do
36 $GPG $dsa_keyrings --always-trust --cipher-algo $ca -e \
37 -o x
--yes -r "$dsa_usrname2" $i
38 $GPG $dsa_keyrings -o y
--yes x
39 cmp $i y || error
"$i: mismatch"