diff options
-rw-r--r-- | Tests/bench.bat | 61 | ||||
-rw-r--r-- | Tests/test.streebog.hc | bin | 0 -> 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 | ||
184 | IF NOT EXIST test.ripemd160.hc GOTO :autodetect | 184 | IF NOT EXIST test.ripemd160.hc GOTO :streebog |
185 | 185 | ||
186 | rem Get start time: | 186 | rem Get start time: |
187 | for /F "tokens=1-4 delims=:.," %%a in ("%time%") do ( | 187 | for /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 | |||
241 | IF NOT EXIST test.streebog.hc GOTO :autodetect | ||
242 | |||
243 | rem Get start time: | ||
244 | for /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 | |||
248 | rem 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 | |||
251 | rem Get end time: | ||
252 | for /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 | |||
256 | rem Get elapsed time: | ||
257 | set /A elapsed=end-start | ||
258 | |||
259 | rem Show elapsed time: | ||
260 | 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 | ||
261 | if %hh% lss 10 set hh=0%hh% | ||
262 | if %mm% lss 10 set mm=0%mm% | ||
263 | if %ss% lss 10 set ss=0%ss% | ||
264 | if %cc% lss 10 set cc=0%cc% | ||
265 | echo Streebog (Normal) = %hh%:%mm%:%ss%,%cc% | ||
266 | |||
267 | "c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q | ||
268 | |||
269 | rem Get start time: | ||
270 | for /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 | |||
274 | rem 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 | |||
277 | rem Get end time: | ||
278 | for /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 | |||
282 | rem Get elapsed time: | ||
283 | set /A elapsed=end-start | ||
284 | |||
285 | rem Show elapsed time: | ||
286 | 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 | ||
287 | if %hh% lss 10 set hh=0%hh% | ||
288 | if %mm% lss 10 set mm=0%mm% | ||
289 | if %ss% lss 10 set ss=0%ss% | ||
290 | if %cc% lss 10 set cc=0%cc% | ||
291 | echo Streebog (Hidden) = %hh%:%mm%:%ss%,%cc% | ||
292 | echo. | ||
293 | |||
294 | "c:\Program Files\VeraCrypt\veracrypt.exe" /dismount %mydriveletter% /silent /q | ||
295 | |||
239 | :autodetect | 296 | :autodetect |
240 | 297 | ||
241 | call :availablevolume testvolume && goto :contautodetect | 298 | call :availablevolume testvolume && goto :contautodetect |
@@ -319,3 +376,5 @@ set volume= | |||
319 | endlocal & set "%output_var%=%volume%" & exit /b %exitcode% | 376 | endlocal & set "%output_var%=%volume%" & exit /b %exitcode% |
320 | 377 | ||
321 | :exit | 378 | :exit |
379 | |||
380 | pause \ 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 | |||