diff options
author | Jakob Unterwurzacher | 2021-08-24 13:30:09 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-08-24 13:30:09 +0200 |
commit | 62ed081c5e3f92855784dea24f14b377de98c511 (patch) | |
tree | c9730b528a624503fea7d9d23c901a5e9428b243 /benchmark.bash | |
parent | abaa12992ce9d59c94a8530237dfaa4ebe6063f0 (diff) |
benchmark.bash: add -xchacha support
Diffstat (limited to 'benchmark.bash')
-rwxr-xr-x | benchmark.bash | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/benchmark.bash b/benchmark.bash index 578979d..dac575b 100755 --- a/benchmark.bash +++ b/benchmark.bash @@ -16,6 +16,7 @@ OPT_LOOPBACK=0 OPT_OPENSSL="" OPT_DIR="" DD_ONLY="" +OPT_XCHACHA="" while [[ $# -gt 0 ]] ; do case $1 in @@ -38,6 +39,9 @@ while [[ $# -gt 0 ]] ; do -loopback) OPT_LOOPBACK=1 ;; + -xchacha) + OPT_XCHACHA="-xchacha" + ;; -*) echo "Invalid option: $1" usage @@ -78,10 +82,10 @@ elif [[ $OPT_LOOPBACK -eq 1 ]]; then "$HOME/go/src/github.com/hanwen/go-fuse/example/loopback/loopback" "$MNT" "$CRYPT" & sleep 0.5 else - echo -n "Testing gocryptfs at $CRYPT: " + echo -n "Testing gocryptfs $OPT_XCHACHA $OPT_OPENSSL at $CRYPT: " gocryptfs -version - gocryptfs -q -init -extpass="echo test" -scryptn=10 "$CRYPT" - gocryptfs -q -extpass="echo test" $OPT_OPENSSL "$CRYPT" "$MNT" + gocryptfs $OPT_XCHACHA -q -init -extpass="echo test" -scryptn=10 "$CRYPT" + gocryptfs $OPT_OPENSSL -q -extpass="echo test" "$CRYPT" "$MNT" fi # Make sure we have actually mounted something |