Correct values of RIPEMD160 iterations count to be identical to Windows ones (defined in function get_pkcs5_iteration_count)

This commit is contained in:
Mounir IDRASSI 2014-06-09 11:10:42 +02:00
parent 31fd16979f
commit bacd720279

View File

@ -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 <Hash> GetHash () const { return shared_ptr <Hash> (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 <Hash> GetHash () const { return shared_ptr <Hash> (new Ripemd160); }
virtual int GetIterationCount () const { return 327670; }
virtual int GetIterationCount () const { return 16384; }
virtual wstring GetName () const { return L"HMAC-RIPEMD-160"; }
private: