diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-10-14 17:20:44 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:23:58 +0100 |
commit | 922a09b6342f1d7859e67ee8949b4590dc796b04 (patch) | |
tree | 3c78348a67cf9f2dad4b2ce1d67885b29e0860b0 /src/Mount/Mount.c | |
parent | f043e6cbf0a9bdb0c4ded2ec45b1f5c5384c7744 (diff) | |
download | VeraCrypt-922a09b6342f1d7859e67ee8949b4590dc796b04.tar.gz VeraCrypt-922a09b6342f1d7859e67ee8949b4590dc796b04.zip |
Use HashForSystemEncryption to check if the algorithm is supported for system partition encryption because we have now two supported algorithms.
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r-- | src/Mount/Mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index d95124e9..d790c675 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -1712,7 +1712,7 @@ BOOL CALLBACK PasswordChangeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPAR int new_hash_algo_id = 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 && new_hash_algo_id != DEFAULT_HASH_ALGORITHM_BOOT)
+ if (new_hash_algo_id != 0 && !HashForSystemEncryption(new_hash_algo_id))
{
int new_hash_algo_id = DEFAULT_HASH_ALGORITHM_BOOT;
Info ("ALGO_NOT_SUPPORTED_FOR_SYS_ENCRYPTION");
|