VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Tests.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2013-06-22 17:38:33 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:18:21 +0100
commit6b2e97c2438e85ddf2f166cf7c56f6c923ffcac4 (patch)
tree539cf805380559c54767d5d0d3c2c0e010e77c19 /src/Common/Tests.c
parent03867fbf5653c0260e71271e0ddf46ed1045b488 (diff)
downloadVeraCrypt-6b2e97c2438e85ddf2f166cf7c56f6c923ffcac4.tar.gz
VeraCrypt-6b2e97c2438e85ddf2f166cf7c56f6c923ffcac4.zip
Enhance security by rising the iterations used in PBKDF2 : 327670 instead of 1000 when booting in encrypted system partition, and 2000000 instead of 2000 when using encrypted containers and partitions
Diffstat (limited to 'src/Common/Tests.c')
-rw-r--r--src/Common/Tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Tests.c b/src/Common/Tests.c
index ebb27ac6..dd4f1621 100644
--- a/src/Common/Tests.c
+++ b/src/Common/Tests.c
@@ -1699,12 +1699,12 @@ BOOL test_pkcs5 ()
#endif
/* PKCS-5 test 1 with HMAC-RIPEMD-160 used as the PRF */
- derive_key_ripemd160 ("password", 8, "\x12\x34\x56\x78", 4, 5, dk, 4);
+ derive_key_ripemd160 (FALSE, "password", 8, "\x12\x34\x56\x78", 4, 5, dk, 4);
if (memcmp (dk, "\x7a\x3d\x7c\x03", 4) != 0)
return FALSE;
/* PKCS-5 test 2 with HMAC-RIPEMD-160 used as the PRF (derives a key longer than the underlying hash) */
- derive_key_ripemd160 ("password", 8, "\x12\x34\x56\x78", 4, 5, dk, 48);
+ derive_key_ripemd160 (FALSE, "password", 8, "\x12\x34\x56\x78", 4, 5, dk, 48);
if (memcmp (dk, "\x7a\x3d\x7c\x03\xe7\x26\x6b\xf8\x3d\x78\xfb\x29\xd2\x64\x1f\x56\xea\xf0\xe5\xf5\xcc\xc4\x3a\x31\xa8\x84\x70\xbf\xbd\x6f\x8e\x78\x24\x5a\xc0\x0a\xf6\xfa\xf0\xf6\xe9\x00\x47\x5f\x73\xce\xe1\x43", 48) != 0)
return FALSE;