* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key, send_key_keyserver):
[gnupg.git] / checks / conventional-mdc.test
blob95a6ba476f56b52dfc5653cd8859616d3677560e
1 #!/bin/sh
3 . $srcdir/defs.inc || exit 3
5 algos="3des"
7 if have_cipher_algo "idea"; then
8 algos="$algos idea"
9 fi
11 if have_cipher_algo "cast5"; then
12 algos="$algos idea"
15 if have_cipher_algo "blowfish"; then
16 algos="$algos idea"
19 if have_cipher_algo "aes"; then
20 algos="$algos aes aes192 aes256"
23 if have_cipher_algo "twofish"; then
24 algos="$algos twofish"
27 #info Checking conventional encryption
28 for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do
29 for ciph in $algos; do
30 # *BSD's dd can't cope with a count of 0
31 if test "$i" = "0"; then
32 : >z
33 else
34 dd if=data-80000 of=z bs=1 count=$i 2>/dev/null
36 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
37 --force-mdc --cipher $ciph -c -o x --yes z
38 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
39 -o y --yes x
40 cmp z y || error "$ciph/$i: mismatch"
41 done
42 done