* gpg.texi (GPG Configuration Options): Make http_proxy option
[gnupg.git] / tests / openpgp / conventional.test
blob2fd273028880c5398dbaa6fab18357265cef9c32
1 #!/bin/sh
3 . $srcdir/defs.inc || exit 3
5 #info Checking conventional encryption
6 for i in plain-2 data-32000 ; do
7 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
8 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
9 cmp $i y || error "$i: mismatch"
10 done
12 algos="3des"
14 if have_cipher_algo "CAST5"; then
15 algos="$algos cast5"
18 if have_cipher_algo "BLOWFISH"; then
19 algos="$algos blowfish"
22 if have_cipher_algo "AES"; then
23 algos="$algos aes aes192 aes256"
26 if have_cipher_algo "TWOFISH"; then
27 algos="$algos twofish"
30 for a in $algos; do
31 for i in plain-1 data-80000 ; do
32 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
33 --cipher-algo $a -c -o x --yes $i
34 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
35 cmp $i y || error "$i: ($a) mismatch"
36 done
37 done