VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 392c0a49..d243b4d9 100644
--- a/Tests/bench.bat
+++ b/Tests/bench.bat
@@ -181,7 +181,7 @@ echo.
181 181
182:ripemd160 182:ripemd160
183 183
184IF NOT EXIST test.ripemd160.hc GOTO :autodetect 184IF NOT EXIST test.ripemd160.hc GOTO :streebog
185 185
186rem Get start time: 186rem Get start time:
187for /F "tokens=1-4 delims=:.," %%a in ("%time%") do ( 187for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
@@ -236,6 +236,63 @@ echo.
236 236
237"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q 237"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
238 238
239:streebog
240
241IF NOT EXIST test.streebog.hc GOTO :autodetect
242
243rem Get start time:
244for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
245 set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
246)
247
248rem Mount Streebog container (Normal)
249"c:\Program Files\VeraCrypt\veracrypt.exe" /volume test.streebog.hc /hash streebog /l %mydriveletter% /password test /q /silent /m ro
250
251rem Get end time:
252for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
253 set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
254)
255
256rem Get elapsed time:
257set /A elapsed=end-start
258
259rem Show elapsed time:
260set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
261if %hh% lss 10 set hh=0%hh%
262if %mm% lss 10 set mm=0%mm%
263if %ss% lss 10 set ss=0%ss%
264if %cc% lss 10 set cc=0%cc%
265echo Streebog (Normal) = %hh%:%mm%:%ss%,%cc%
266
267"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
268
269rem Get start time:
270for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
271 set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
272)
273
274rem Mount Streebog container (Hidden)
275"c:\Program Files\VeraCrypt\veracrypt.exe" /volume test.streebog.hc /hash streebog /l %mydriveletter% /password testhidden /q /silent /m ro
276
277rem Get end time:
278for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
279 set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
280)
281
282rem Get elapsed time:
283set /A elapsed=end-start
284
285rem Show elapsed time:
286set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
287if %hh% lss 10 set hh=0%hh%
288if %mm% lss 10 set mm=0%mm%
289if %ss% lss 10 set ss=0%ss%
290if %cc% lss 10 set cc=0%cc%
291echo Streebog (Hidden) = %hh%:%mm%:%ss%,%cc%
292echo.
293
294"c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q
295
239:autodetect 296:autodetect
240 297
241call :availablevolume testvolume && goto :contautodetect 298call :availablevolume testvolume && goto :contautodetect
@@ -319,3 +376,5 @@ set volume=
319endlocal & set "%output_var%=%volume%" & exit /b %exitcode% 376endlocal & set "%output_var%=%volume%" & exit /b %exitcode%
320 377
321:exit 378:exit
379
380pause \ No newline at end of file
diff --git a/Tests/test.streebog.hc b/Tests/test.streebog.hc
new file mode 100644
index 00000000..569d0856
--- /dev/null
+++ b/Tests/test.streebog.hc
Binary files differ