diff options
Diffstat (limited to 'src/Volume/VolumePassword.cpp')
-rw-r--r-- | src/Volume/VolumePassword.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Volume/VolumePassword.cpp b/src/Volume/VolumePassword.cpp index bfa0ffe2..9ba3ebce 100644 --- a/src/Volume/VolumePassword.cpp +++ b/src/Volume/VolumePassword.cpp @@ -3,9 +3,9 @@ Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0. Modifications and additions to the original source code (contained in this file) - and all other portions of this file are Copyright (c) 2013-2016 IDRIX + and all other portions of this file are Copyright (c) 2013-2017 IDRIX and are governed by the Apache License 2.0 the full text of which is contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ @@ -15,8 +15,12 @@ #include "Platform/StringConverter.h" namespace VeraCrypt { + const size_t VolumePassword::MaxLegacySize = 64; + const size_t VolumePassword::MaxSize = 128; + const size_t VolumePassword::WarningSizeThreshold = 12; + VolumePassword::VolumePassword () : PasswordSize (0) { AllocateBuffer (); } @@ -55,9 +59,9 @@ namespace VeraCrypt wipeBuffer.Zero(); sr.Serialize ("WipeData", ConstBufferPtr (wipeBuffer)); } - void VolumePassword::Set (const byte *password, size_t size) + void VolumePassword::Set (const uint8 *password, size_t size) { AllocateBuffer (); if (size > MaxSize) |