VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-06-17 18:53:51 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-06-17 19:04:04 +0200
commitbdc5782f16651bca9f6c885f57a00a63ac9adb2c (patch)
treecc4bf7d9d51d6974a0a60f9262c9eb013827cf1f
parent42373efcfdbad2a96896846ba3c151154dd35b84 (diff)
downloadVeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.tar.gz
VeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.zip
Windows: Better heuristics for evaluating Pre-Boot PRF performance
-rw-r--r--src/Common/Dlgcode.c16
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));