mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-17 01:51:32 +00: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();
|
||||
|
||||
Reference in New Issue
Block a user