]> git.scottworley.com Git - overonion/commitdiff
Finish encryption before starting decryption
authorScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 04:58:07 +0000 (21:58 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 04:58:07 +0000 (21:58 -0700)
overonion_test

index 6ec2d61cec9f607cd6ed6df0c7eb44353038d23f..1f654cc9beebbeb8d8f33d580eafe1f2abeef968 100755 (executable)
@@ -6,6 +6,7 @@ d=$(mktemp -d)
 test_data=$0
 
 ./overonion-make-key --make_INSECURE_key "$d/key"
 test_data=$0
 
 ./overonion-make-key --make_INSECURE_key "$d/key"
-cmp --verbose <(./overonion e "$d/key" < "$test_data" | ./overonion d "$d/key") "$test_data"
+./overonion e "$d/key" < "$test_data" > "$d/encrypted"
+cmp --verbose <(./overonion d "$d/key" < "$d/encrypted") "$test_data"
 rm -r "$d"
 echo PASS
 rm -r "$d"
 echo PASS