diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-08-24 17:53:44 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-09-29 21:06:06 +0200 |
commit | e5a0bf22b17d7d6c92d7793bed5d63d0e9e72e4c (patch) | |
tree | e37884982c93854cd787de63751ebeb0538148c2 /src/Mount | |
parent | 7735b983bf3794b033406a7bcbfb414faee86c09 (diff) | |
download | VeraCrypt-e5a0bf22b17d7d6c92d7793bed5d63d0e9e72e4c.tar.gz VeraCrypt-e5a0bf22b17d7d6c92d7793bed5d63d0e9e72e4c.zip |
Windows: Exclude Argon2 for System Encryption and from automatic detection
Bootloader doesn't support Argon2 yet. We don't want to add overhead to automatic detection for now.
Diffstat (limited to 'src/Mount')
-rw-r--r-- | src/Mount/Mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index a851ebef..c2da8440 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -2749,7 +2749,7 @@ BOOL CALLBACK PasswordChangeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPAR int new_hash_algo_id = (int) SendMessage (GetDlgItem (hwndDlg, IDC_PKCS5_PRF_ID), CB_GETITEMDATA, SendMessage (GetDlgItem (hwndDlg, IDC_PKCS5_PRF_ID), CB_GETCURSEL, 0, 0), 0); - if (new_hash_algo_id != 0 && !bSystemIsGPT && !HashForSystemEncryption(new_hash_algo_id)) + if (new_hash_algo_id != 0 && (!bSystemIsGPT && !HashForSystemEncryption(new_hash_algo_id)) || (new_hash_algo_id == ARGON2)) { int new_hash_algo_id = DEFAULT_HASH_ALGORITHM_BOOT; Info ("ALGO_NOT_SUPPORTED_FOR_SYS_ENCRYPTION", hwndDlg); @@ -3094,7 +3094,7 @@ BOOL CALLBACK PasswordDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa for (i = FIRST_PRF_ID; i <= LAST_PRF_ID; i++) { - if (bSystemIsGPT || HashForSystemEncryption(i)) + if ((bSystemIsGPT || HashForSystemEncryption(i)) && (i != ARGON2)) { nIndex = (int) SendMessage (hComboBox, CB_ADDSTRING, 0, (LPARAM) get_pkcs5_prf_name(i)); SendMessage (hComboBox, CB_SETITEMDATA, nIndex, (LPARAM) i); |