mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Increase password maximum length to 128 bytes from 64 bytes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user