VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-05-31 21:11:30 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:19:06 (GMT)
commit49f679ca53cc960875b79a38ec79c230ccaab6a7 (patch)
tree953f8099d1628a034aec2b8c80adf9bbb5b7f6aa /src
parentedc9f36322e44bc0b164cf27ca03cf970ef48091 (diff)
downloadVeraCrypt-49f679ca53cc960875b79a38ec79c230ccaab6a7.zip
VeraCrypt-49f679ca53cc960875b79a38ec79c230ccaab6a7.tar.gz
Change PBKDF Iterations count from TrueCrypt values to VeraCrypt values.
Diffstat (limited to 'src')
-rw-r--r--src/Volume/Pkcs5Kdf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Volume/Pkcs5Kdf.h b/src/Volume/Pkcs5Kdf.h
index a0b8f28..d8c1a11 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) const;
virtual shared_ptr <Hash> GetHash () const { return shared_ptr <Hash> (new Ripemd160); }
- virtual int GetIterationCount () const { return 2000; }
+ virtual int GetIterationCount () const { return 655340; }
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) const;
virtual shared_ptr <Hash> GetHash () const { return shared_ptr <Hash> (new Ripemd160); }
- virtual int GetIterationCount () const { return 1000; }
+ virtual int GetIterationCount () const { return 327670; }
virtual wstring GetName () const { return L"HMAC-RIPEMD-160"; }
private:
@@ -83,7 +83,7 @@ namespace TrueCrypt
virtual void DeriveKey (const BufferPtr &key, const VolumePassword &password, const ConstBufferPtr &salt, int iterationCount) const;
virtual shared_ptr <Hash> GetHash () const { return shared_ptr <Hash> (new Sha1); }
- virtual int GetIterationCount () const { return 2000; }
+ virtual int GetIterationCount () const { return 500000; }
virtual wstring GetName () const { return L"HMAC-SHA-1"; }
private:
@@ -99,7 +99,7 @@ namespace TrueCrypt
virtual void DeriveKey (const BufferPtr &key, const VolumePassword &password, const ConstBufferPtr &salt, int iterationCount) const;
virtual shared_ptr <Hash> GetHash () const { return shared_ptr <Hash> (new Sha512); }
- virtual int GetIterationCount () const { return 1000; }
+ virtual int GetIterationCount () const { return 500000; }
virtual wstring GetName () const { return L"HMAC-SHA-512"; }
private:
@@ -115,7 +115,7 @@ namespace TrueCrypt
virtual void DeriveKey (const BufferPtr &key, const VolumePassword &password, const ConstBufferPtr &salt, int iterationCount) const;
virtual shared_ptr <Hash> GetHash () const { return shared_ptr <Hash> (new Whirlpool); }
- virtual int GetIterationCount () const { return 1000; }
+ virtual int GetIterationCount () const { return 500000; }
virtual wstring GetName () const { return L"HMAC-Whirlpool"; }
private: