VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-10 05:03:05 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-12 08:42:56 (GMT)
commit153608142dbe44d3abc1862efee4f45db26056f8 (patch)
tree701bd0dbc11f4e2e2fc043fd539c9c1bf17b5c1d /Tests
parente831198b3b0afbcd21cb9a4b1aef90fa8b198d69 (diff)
downloadVeraCrypt-153608142dbe44d3abc1862efee4f45db26056f8.zip
VeraCrypt-153608142dbe44d3abc1862efee4f45db26056f8.tar.gz
Windows: Add Streebog to the benchmark script
Diffstat (limited to 'Tests')
-rw-r--r--Tests/bench.bat61
-rw-r--r--Tests/test.streebog.hcbin0 -> 524288 bytes
2 files changed, 60 insertions, 1 deletions
diff --git a/Tests/bench.bat b/Tests/bench.bat
index 392c0a4..d243b4d 100644
--- a/Tests/bench.bat
+++ b/Tests/bench.bat
@@ -181,7 +181,7 @@ echo.
:ripemd160
-IF NOT EXIST test.ripemd160.hc GOTO :autodetect
+IF NOT EXIST test.ripemd160.hc GOTO :streebog
rem Get start time:
for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
@@ -236,6 +236,63 @@ echo.
"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
+:streebog
+
+IF NOT EXIST test.streebog.hc GOTO :autodetect
+
+rem Get start time:
+for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
+ set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
+)
+
+rem Mount Streebog container (Normal)
+"c:\Program Files\VeraCrypt\veracrypt.exe" /volume test.streebog.hc /hash streebog /l %mydriveletter% /password test /q /silent /m ro
+
+rem Get end time:
+for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
+ set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
+)
+
+rem Get elapsed time:
+set /A elapsed=end-start
+
+rem Show elapsed time:
+set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
+if %hh% lss 10 set hh=0%hh%
+if %mm% lss 10 set mm=0%mm%
+if %ss% lss 10 set ss=0%ss%
+if %cc% lss 10 set cc=0%cc%
+echo Streebog (Normal) = %hh%:%mm%:%ss%,%cc%
+
+"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
+
+rem Get start time:
+for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
+ set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
+)
+
+rem Mount Streebog container (Hidden)
+"c:\Program Files\VeraCrypt\veracrypt.exe" /volume test.streebog.hc /hash streebog /l %mydriveletter% /password testhidden /q /silent /m ro
+
+rem Get end time:
+for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
+ set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
+)
+
+rem Get elapsed time:
+set /A elapsed=end-start
+
+rem Show elapsed time:
+set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
+if %hh% lss 10 set hh=0%hh%
+if %mm% lss 10 set mm=0%mm%
+if %ss% lss 10 set ss=0%ss%
+if %cc% lss 10 set cc=0%cc%
+echo Streebog (Hidden) = %hh%:%mm%:%ss%,%cc%
+echo.
+
+"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
+
:autodetect
call :availablevolume testvolume && goto :contautodetect
@@ -319,3 +376,5 @@ set volume=
endlocal & set "%output_var%=%volume%" & exit /b %exitcode%
:exit
+
+pause \ No newline at end of file
diff --git a/Tests/test.streebog.hc b/Tests/test.streebog.hc
new file mode 100644
index 0000000..569d085
--- /dev/null
+++ b/Tests/test.streebog.hc
Binary files differ