mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Crypto: Use Hyper-V AES-NI detection workaround when displaying AES hardware availability in GUI.
This commit is contained in:
@@ -5517,12 +5517,13 @@ BOOL CALLBACK BenchmarkDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
|
||||
|
||||
|
||||
uint32 driverConfig = ReadDriverConfigurationFlags();
|
||||
int isAesHwSupported = is_aes_hw_cpu_supported();
|
||||
|
||||
SetDlgItemTextW (hwndDlg, IDC_HW_AES, (wstring (L" ") + (GetString (is_aes_hw_cpu_supported() ? ((driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION) ? "UISTR_DISABLED" : "UISTR_YES") : "NOT_APPLICABLE_OR_NOT_AVAILABLE"))).c_str());
|
||||
SetDlgItemTextW (hwndDlg, IDC_HW_AES, (wstring (L" ") + (GetString (isAesHwSupported ? ((driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION) ? "UISTR_DISABLED" : "UISTR_YES") : "NOT_APPLICABLE_OR_NOT_AVAILABLE"))).c_str());
|
||||
|
||||
ToHyperlink (hwndDlg, IDC_HW_AES_LABEL_LINK);
|
||||
|
||||
if (is_aes_hw_cpu_supported() && (driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION))
|
||||
if (isAesHwSupported && (driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION))
|
||||
{
|
||||
Warning ("DISABLED_HW_AES_AFFECTS_PERFORMANCE", hwndDlg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user