mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows/Linux/MacOSX: Set maximum PIM value to 2147468 in order to avoid having negative values for iterations count using the formula 15000 + (PIM x 1000). Add specific error message to XML language files.
This commit is contained in:
@@ -94,13 +94,13 @@ namespace VeraCrypt
|
||||
ProtectionPasswordPanel->GetVolumePim() : 0;
|
||||
|
||||
/* invalid PIM: set focus to PIM field and stop processing */
|
||||
if (-1 == Pim)
|
||||
if (-1 == Pim || (PartitionInSystemEncryptionScopeCheckBox->IsChecked() && Pim > MAX_BOOT_PIM_VALUE))
|
||||
{
|
||||
PasswordPanel->SetFocusToPimTextCtrl();
|
||||
return;
|
||||
}
|
||||
|
||||
if (-1 == ProtectionPim)
|
||||
if (-1 == ProtectionPim || (PartitionInSystemEncryptionScopeCheckBox->IsChecked() && ProtectionPim > MAX_BOOT_PIM_VALUE))
|
||||
{
|
||||
ProtectionPasswordPanel->SetFocusToPimTextCtrl();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user