VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2013-06-22 17:42:33 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:18:38 (GMT)
commit4e5c86b8c92f7b617cf9ef40f5d1930d52924510 (patch)
treed45d0554c10c3601a61923f1399ba216fd6c0496 /src
parent9cf14a3573c98b57858e08427a13d048410f655b (diff)
downloadVeraCrypt-4e5c86b8c92f7b617cf9ef40f5d1930d52924510.zip
VeraCrypt-4e5c86b8c92f7b617cf9ef40f5d1930d52924510.tar.gz
Reduce excessive iterations count while on the same time keep very high security
Diffstat (limited to 'src')
-rw-r--r--src/Common/Pkcs5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Common/Pkcs5.c b/src/Common/Pkcs5.c
index 0fa7f71..f02364e 100644
--- a/src/Common/Pkcs5.c
+++ b/src/Common/Pkcs5.c
@@ -630,16 +630,16 @@ int get_pkcs5_iteration_count (int pkcs5_prf_id, BOOL bBoot)
#else
case RIPEMD160:
- return bBoot? 32767 : 200000; /* we multiply this number by 10 inside derive_u_ripemd160 */
+ return bBoot? 32767 : 65534; /* we multiply this number by 10 inside derive_u_ripemd160 */
case SHA512:
- return 1000000;
+ return 500000;
case SHA1: // Deprecated/legacy
- return 2000000;
+ return 1000000;
case WHIRLPOOL:
- return 1000000;
+ return 500000;
#endif
default: