]> git.scottworley.com Git - overonion/blobdiff - overonion_test
Move hash initiation into overonion-make-key
[overonion] / overonion_test
index 6ec2d61cec9f607cd6ed6df0c7eb44353038d23f..f4da9b40415da20b38da9b1b7e0ed26234cc35ca 100755 (executable)
@@ -6,6 +6,8 @@ d=$(mktemp -d)
 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"
+./overonion d "$d/key" < "$d/encrypted" > "$d/roundtripped"
+cmp --verbose "$d/roundtripped" "$test_data"
 rm -r "$d"
 echo PASS