VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-06-17 16:53:51 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-06-17 17:04:04 (GMT)
commitbdc5782f16651bca9f6c885f57a00a63ac9adb2c (patch)
treecc4bf7d9d51d6974a0a60f9262c9eb013827cf1f /src
parent42373efcfdbad2a96896846ba3c151154dd35b84 (diff)
downloadVeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.zip
VeraCrypt-bdc5782f16651bca9f6c885f57a00a63ac9adb2c.tar.gz
Windows: Better heuristics for evaluating Pre-Boot PRF performance
Diffstat (limited to 'src')
-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 0fc6cac..10e504a 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));