diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-10 19:24:39 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-11 18:31:38 +0100 |
commit | c8c8cc517dae089c1241890133837339a716f225 (patch) | |
tree | ed33acfa3d4de2fa33879c0aeee460acc51f5bea /src/Core/RandomNumberGenerator.h | |
parent | e6730069695d1206a3650af7ffcc787910e9d1c2 (diff) | |
download | VeraCrypt-c8c8cc517dae089c1241890133837339a716f225.tar.gz VeraCrypt-c8c8cc517dae089c1241890133837339a716f225.zip |
Linux/MacOSX: Implement generating more than one keyfile, specifying the size of the generated keyfiles and letting VeraCrypt choose random size values.
Diffstat (limited to 'src/Core/RandomNumberGenerator.h')
-rw-r--r-- | src/Core/RandomNumberGenerator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Core/RandomNumberGenerator.h b/src/Core/RandomNumberGenerator.h index 2c7587c9..2f61cd9a 100644 --- a/src/Core/RandomNumberGenerator.h +++ b/src/Core/RandomNumberGenerator.h @@ -19,8 +19,8 @@ namespace VeraCrypt { public: static void AddToPool (const ConstBufferPtr &buffer); - static void GetData (const BufferPtr &buffer) { GetData (buffer, false); } - static void GetDataFast (const BufferPtr &buffer) { GetData (buffer, true); } + static void GetData (const BufferPtr &buffer, bool allowAnyLength = false) { GetData (buffer, false, allowAnyLength); } + static void GetDataFast (const BufferPtr &buffer, bool allowAnyLength = false) { GetData (buffer, true, allowAnyLength); } static shared_ptr <Hash> GetHash (); static bool IsEnrichedByUser () { return EnrichedByUser; } static bool IsRunning () { return Running; } @@ -34,7 +34,7 @@ namespace VeraCrypt protected: static void AddSystemDataToPool (bool fast); - static void GetData (const BufferPtr &buffer, bool fast); + static void GetData (const BufferPtr &buffer, bool fast, bool allowAnyLength); static void HashMixPool (); static void Test (); RandomNumberGenerator (); |