summaryrefslogtreecommitdiffstats
path: root/checks/encrypt-dsa.test
blob: ba0564fd8fc884a2ef4238b79a9e1291b4f1f549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

. $srcdir/defs.inc || exit 3

#info Checking encryption
for i in $plain_files $data_files ; do
    $srcdir/run-gpg $dsa_keyrings -e -o x --yes -r "$dsa_usrname2" $i
    $srcdir/run-gpg $dsa_keyrings -o y --yes x
    cmp $i y || error "$i: mismatch"
done

# and with cast
for i in $plain_files $data_files ; do
    $srcdir/run-gpg $dsa_keyrings --cipher-algo cast5 -e \
					-o x --yes -r "$dsa_usrname2" $i
    $srcdir/run-gpg $dsa_keyrings -o y --yes x
    cmp $i y || error "$i: mismatch"
done