]>
Commit | Line | Data |
---|---|---|
636e3e5b SW |
1 | #!/bin/bash |
2 | ||
3 | set -e | |
4 | ||
5 | d=$(mktemp -d) | |
6 | test_data=$0 | |
7 | ||
8 | ./overonion-make-key --make_INSECURE_key "$d/key" | |
64d0ba09 | 9 | ./overonion e "$d/key" < "$test_data" > "$d/encrypted" |
bcbeee4d SW |
10 | ./overonion d "$d/key" < "$d/encrypted" > "$d/roundtripped" |
11 | cmp --verbose "$d/roundtripped" "$test_data" | |
636e3e5b SW |
12 | rm -r "$d" |
13 | echo PASS |