diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-06-09 11:10:42 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:19:36 +0100 |
commit | bacd720279cb99bc5fe05de556f8a8ca23b9788e (patch) | |
tree | 848a4b7aa4ae5e7e93eb5aa3af2841783817d6f3 /src/Volume | |
parent | 31fd16979fa56eda856d93754b388e73eae69f9f (diff) | |
download | VeraCrypt-bacd720279cb99bc5fe05de556f8a8ca23b9788e.tar.gz VeraCrypt-bacd720279cb99bc5fe05de556f8a8ca23b9788e.zip |
Correct values of RIPEMD160 iterations count to be identical to Windows ones (defined in function get_pkcs5_iteration_count)
Diffstat (limited to 'src/Volume')
-rw-r--r-- | src/Volume/Pkcs5Kdf.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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: |