* keygen.c (gen_dsa): Allow generating DSA2 keys (allow specifying sizes >
[gnupg.git] / checks / encrypt.test
blob44f26a17a905af78ed6a54eeae82746e6a43ac76
1 #!/bin/sh
3 . $srcdir/defs.inc || exit 3
5 #info Checking encryption
6 for i in $plain_files $data_files ; do
7 $GPG --always-trust -e -o x --yes -r "$usrname2" $i
8 $GPG -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 --always-trust -e -o x --yes -r "$usrname2" --cipher-algo $ca $i
37 $GPG -o y --yes x
38 cmp $i y || error "$i: mismatch"
39 done
40 done