We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452f75d commit 407a4b2Copy full SHA for 407a4b2
testValidity.sh
@@ -9,6 +9,10 @@ dd if=/dev/urandom of=randomData bs=1M count=1000 2>/dev/null || fail "Failed to
9
CKEY=test go run chap.go e < randomData > encryptedData || fail "Failed to encrypt data"
10
CKEY=test go run chap.go d < encryptedData > decryptedData || fail "Failed to decrypt data"
11
12
+# Test pipe to make sure no decryption errors occur
13
+dd if=/dev/urandom bs=1M count=1000 | CKEY=test go run chap.go e | CKEY=test go run chap.go d > /dev/null
14
+
15
16
# Check if on macOS, use md5 instead of md5sum
17
if [ "$(uname)" == "Darwin" ]; then
18
ORIGINAL_MD5=$(md5 -q randomData)
@@ -24,4 +28,4 @@ fi
24
28
25
29
rm randomData encryptedData decryptedData || fail "Failed to clean up"
26
30
27
-echo "All tests passed successfully!"
31
+echo "All tests passed successfully!"
0 commit comments