diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-06-17 18:53:51 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-06-17 19:04:04 +0200 |
commit | bdc5782f16651bca9f6c885f57a00a63ac9adb2c (patch) | |
tree | cc4bf7d9d51d6974a0a60f9262c9eb013827cf1f /src/Common | |
parent | 42373efcfdbad2a96896846ba3c151154dd35b84 (diff) | |
download | VeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.tar.gz VeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.zip |
Windows: Better heuristics for evaluating Pre-Boot PRF performance
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Dlgcode.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 0fc6cac7..10e504a8 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -5235,9 +5235,21 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg) else { if (thid == SHA256) - benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 8 * 18) / 5; + { +#ifdef _WIN64 + benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 26); +#else + benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 24); +#endif + } else - benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 8) / 3; + { +#ifdef _WIN64 + benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 21) / 5; +#else + benchmarkTable[benchmarkTotalItems].meanBytesPerSec = (benchmarkTable[benchmarkTotalItems].meanBytesPerSec * 18) / 5; +#endif + } } } StringCbPrintfW (benchmarkTable[benchmarkTotalItems].name, sizeof(benchmarkTable[benchmarkTotalItems].name),L"%s", get_pkcs5_prf_name (thid)); |