1#!/bin/sh 2 3. $srcdir/defs.inc || exit 3 4 5#info Checking conventional encryption 6for ciph in `all_cipher_algos`; do 7 echo_n "$ciph " 8 for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do 9 # *BSD's dd can't cope with a count of 0 10 if test "$i" = "0"; then 11 : >z 12 my_chtag z 13 else 14 dd if=data-80000 of=z bs=1 count=$i 2>/dev/null 15 fi 16 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \ 17 --force-mdc --cipher $ciph -c -o x --yes z 18 echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \ 19 -o y --yes x 20 cmp z y || error "$ciph/$i: mismatch" 21 done 22done 23echo_n "| " 24