File: conventional.test

package info (click to toggle)
gnupg 1.4.18-7%2Bdeb8u5
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 34,476 kB
  • sloc: ansic: 127,074; sh: 7,535; asm: 4,610; makefile: 1,186; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (21 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

. $srcdir/defs.inc || exit 3

#info Checking conventional encryption
for i in plain-2 data-32000 ; do
    echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
    echo "Hier spricht HAL" | $GPG --passphrase-fd 0    -o y --yes x
    cmp $i y || error "$i: mismatch"
done

for a in `all_cipher_algos`; do
    echo_n "$a "
    for i in plain-1 data-80000 ; do
      echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
					  --cipher-algo $a -c -o x --yes $i
      echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
      cmp $i y || error "$i: ($a) mismatch"
    done
done
echo_n "| "