* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key, send_key_keyserver):
[gnupg.git] / checks / encrypt-dsa.test
blob0c6333c2166fb7d80a892083d53f11b6537a06cd
1 #!/bin/sh
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"
10 done
12 algos="3des"
14 if have_cipher_algo "idea"; then
15 algos="$algos idea"
18 if have_cipher_algo "cast5"; then
19 algos="$algos idea"
22 if have_cipher_algo "blowfish"; then
23 algos="$algos idea"
26 if have_cipher_algo "aes"; then
27 algos="$algos aes aes192 aes256"
30 if have_cipher_algo "twofish"; then
31 algos="$algos twofish"
34 for ca in $algos ; do
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"
40 done
41 done