mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-19 02:56:07 -05:00
Linux/macOS: Implement missing Argon2 KDF support on Unix
This commit is contained in:
@@ -230,7 +230,7 @@ BEGIN
|
||||
EDITTEXT IDC_PASSWORD_DIRECT,75,2,198,14,ES_PASSWORD | ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_PKCS5_PRF_ID,75,17,131,90,CBS_DROPDOWNLIST | WS_TABSTOP
|
||||
EDITTEXT IDC_PIM,75,32,42,14,ES_RIGHT | ES_PASSWORD | ES_AUTOHSCROLL | ES_NUMBER | NOT WS_VISIBLE
|
||||
LTEXT "(Empty or 0 for default iterations)",IDC_PIM_HELP,121,34,152,8,NOT WS_VISIBLE
|
||||
LTEXT "(Empty or 0 for defaults)",IDC_PIM_HELP,121,34,152,8,NOT WS_VISIBLE
|
||||
CONTROL "&Display password",IDC_SHOW_PASSWORD_SINGLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,75,46,109,11,WS_EX_TRANSPARENT
|
||||
CONTROL "U&se keyfiles",IDC_KEYFILES_ENABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,75,57,106,11
|
||||
PUSHBUTTON "&Keyfiles...",IDC_KEY_FILES,188,54,85,14
|
||||
@@ -449,7 +449,7 @@ BEGIN
|
||||
CONTROL "Display PIM",IDC_SHOW_PIM,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,74,17,196,10
|
||||
LTEXT "",IDC_BOX_HELP,0,32,273,142
|
||||
RTEXT "Volume PIM:",IDT_PIM,1,3,69,8
|
||||
LTEXT "(Empty or 0 for default iterations)",IDC_PIM_HELP,120,3,153,8
|
||||
LTEXT "(Empty or 0 for defaults)",IDC_PIM_HELP,120,3,153,8
|
||||
LTEXT "Information on PIM",IDC_LINK_PIM_INFO,0,179,273,8,SS_NOTIFY
|
||||
END
|
||||
|
||||
|
||||
+17
-5
@@ -792,6 +792,22 @@ static BOOL CreatingHiddenSysVol (void)
|
||||
&& bHiddenVol && !bHiddenVolHost);
|
||||
}
|
||||
|
||||
static const char *GetPimHelpStringId (int pkcs5Prf, BOOL systemEncryption)
|
||||
{
|
||||
#if !defined (WOLFCRYPT_BACKEND) && !defined (VC_DCS_DISABLE_ARGON2)
|
||||
if (pkcs5Prf == ARGON2)
|
||||
return "PIM_ARGON2_HELP";
|
||||
#endif
|
||||
#ifndef WOLFCRYPT_BACKEND
|
||||
if (systemEncryption && pkcs5Prf != SHA512 && pkcs5Prf != WHIRLPOOL)
|
||||
return "PIM_SYSENC_HELP";
|
||||
#else
|
||||
if (systemEncryption && pkcs5Prf != SHA512)
|
||||
return "PIM_SYSENC_HELP";
|
||||
#endif
|
||||
return "PIM_HELP";
|
||||
}
|
||||
|
||||
static void LoadSettingsAndCheckModified (HWND hwndDlg, BOOL bOnlyCheckModified, BOOL* pbSettingsModified, BOOL* pbHistoryModified)
|
||||
{
|
||||
if (!bOnlyCheckModified)
|
||||
@@ -4500,11 +4516,7 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
}
|
||||
|
||||
SetFocus (GetDlgItem (hwndDlg, IDC_PIM));
|
||||
#ifndef WOLFCRYPT_BACKEND
|
||||
SetWindowTextW (GetDlgItem (hwndDlg, IDC_BOX_HELP), GetString (SysEncInEffect () && hash_algo != SHA512 && hash_algo != WHIRLPOOL? "PIM_SYSENC_HELP" : "PIM_HELP"));
|
||||
#else
|
||||
SetWindowTextW (GetDlgItem (hwndDlg, IDC_BOX_HELP), GetString (SysEncInEffect () && hash_algo != SHA512? "PIM_SYSENC_HELP" : "PIM_HELP"));
|
||||
#endif
|
||||
SetWindowTextW (GetDlgItem (hwndDlg, IDC_BOX_HELP), GetString (GetPimHelpStringId (hash_algo, SysEncInEffect ())));
|
||||
ToHyperlink (hwndDlg, IDC_LINK_PIM_INFO);
|
||||
|
||||
if (CreatingHiddenSysVol())
|
||||
|
||||
Reference in New Issue
Block a user