aboutsummaryrefslogtreecommitdiffstats
path: root/checks/encrypt.test
blob: 85a67eb37ce5e321794d68908bf28356f1cdb081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. defs.inc || exit 3

#info Checking encryption
for i in $plain_files $data_files ; do
    ./run-gpg -e -o x --yes -r "$usrname2" $i
    ./run-gpg -o y --yes x
    cmp $i y || error "$i: mismatch"
done
for i in $plain_files $data_files ; do
    ./run-gpg -e -o x --yes -r "$usrname2" --cipher-algo cast5 $i
    ./run-gpg -o y --yes x
    cmp $i y || error "$i: mismatch"
done