VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-28 13:58:41 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-28 16:16:33 (GMT)
commitcdd1179c63bb892696adfad1818d65e3026916ca (patch)
treee2d7265440b8cc51ca544d2c2412041b0d18439d /src/Main/Forms
parent54e46c260cf04861c99d8b2590999c1eb33f0cb1 (diff)
downloadVeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.zip
VeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.tar.gz
Increase password maximum length to 128 bytes from 64 bytes
Diffstat (limited to 'src/Main/Forms')
-rw-r--r--src/Main/Forms/MountOptionsDialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Main/Forms/MountOptionsDialog.cpp b/src/Main/Forms/MountOptionsDialog.cpp
index 815cd52..c980133 100644
--- a/src/Main/Forms/MountOptionsDialog.cpp
+++ b/src/Main/Forms/MountOptionsDialog.cpp
@@ -140,6 +140,13 @@ namespace VeraCrypt
Gui->ShowWarning (e);
return;
}
+
+ if (Options.PartitionInSystemEncryptionScope && Options.Password->Size() > VolumePassword::MaxLegacySize)
+ {
+ Gui->ShowWarning (StringFormatter (_("System Encryption password is longer than {0} characters."), (int) VolumePassword::MaxLegacySize));
+ return;
+ }
+
Options.Pim = Pim;
Options.Kdf = PasswordPanel->GetPkcs5Kdf(bUnsupportedKdf);
if (bUnsupportedKdf)