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"
14 if have_cipher_algo
"CAST5"; then
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"
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"