3 .
$srcdir/defs.inc ||
exit 3
7 if have_cipher_algo
"idea"; then
11 if have_cipher_algo
"cast5"; then
15 if have_cipher_algo
"blowfish"; then
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
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 \
40 cmp z y || error
"$ciph/$i: mismatch"