From bacd720279cb99bc5fe05de556f8a8ca23b9788e Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 9 Jun 2014 11:10:42 +0200 Subject: Correct values of RIPEMD160 iterations count to be identical to Windows ones (defined in function get_pkcs5_iteration_count) --- src/Volume/Pkcs5Kdf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Volume') diff --git a/src/Volume/Pkcs5Kdf.h b/src/Volume/Pkcs5Kdf.h index 5e7648fa..283c8ce6 100644 --- a/src/Volume/Pkcs5Kdf.h +++ b/src/Volume/Pkcs5Kdf.h @@ -51,7 +51,7 @@ namespace TrueCrypt virtual void DeriveKey (const BufferPtr &key, const VolumePassword &password, const ConstBufferPtr &salt, int iterationCount, BOOL bNotTest = TRUE) const; virtual shared_ptr GetHash () const { return shared_ptr (new Ripemd160); } - virtual int GetIterationCount () const { return 655340; } + virtual int GetIterationCount () const { return 32767; } virtual wstring GetName () const { return L"HMAC-RIPEMD-160"; } private: @@ -67,7 +67,7 @@ namespace TrueCrypt virtual void DeriveKey (const BufferPtr &key, const VolumePassword &password, const ConstBufferPtr &salt, int iterationCount, BOOL bNotTest = TRUE) const; virtual shared_ptr GetHash () const { return shared_ptr (new Ripemd160); } - virtual int GetIterationCount () const { return 327670; } + virtual int GetIterationCount () const { return 16384; } virtual wstring GetName () const { return L"HMAC-RIPEMD-160"; } private: -- cgit v1.2.3