From 922a09b6342f1d7859e67ee8949b4590dc796b04 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 14 Oct 2014 17:20:44 +0200 Subject: Use HashForSystemEncryption to check if the algorithm is supported for system partition encryption because we have now two supported algorithms. --- src/Mount/Mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mount/Mount.c') 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"); -- cgit v1.2.3