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

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();