1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-09 22:36:59 -05:00

Increase password maximum length to 128 bytes from 64 bytes

This commit is contained in:
Mounir IDRASSI
2019-01-28 14:58:41 +01:00
parent 54e46c260c
commit cdd1179c63
51 changed files with 267 additions and 220 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ done:
}
else
{
SecureBuffer keyfilePool (VolumePassword::MaxSize);
SecureBuffer keyfilePool (password->Size() <= VolumePassword::MaxLegacySize? VolumePassword::MaxLegacySize: VolumePassword::MaxSize);
// Pad password with zeros if shorter than max length
keyfilePool.Zero();
+2 -1
View File
@@ -41,7 +41,8 @@ namespace VeraCrypt
TC_SERIALIZABLE (VolumePassword);
static const size_t MaxSize = 64;
static const size_t MaxLegacySize = 64;
static const size_t MaxSize = 128;
static const size_t WarningSizeThreshold = 12;
protected: