From c8c8cc517dae089c1241890133837339a716f225 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 10 Dec 2014 19:24:39 +0100 Subject: Linux/MacOSX: Implement generating more than one keyfile, specifying the size of the generated keyfiles and letting VeraCrypt choose random size values. --- src/Core/RandomNumberGenerator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Core/RandomNumberGenerator.h') 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 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 (); -- cgit v1.2.3