1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 19:38:26 -06:00

Windows: support loading TrueCrypt volumes. Implement converting TrueCrypt volumes to VeraCrypt using the change password functionality.

This commit is contained in:
Mounir IDRASSI
2014-12-28 19:04:05 +01:00
parent ec9ff0fc1d
commit 25c3d15ed7
29 changed files with 246 additions and 104 deletions

View File

@@ -665,19 +665,22 @@ char *get_pkcs5_prf_name (int pkcs5_prf_id)
int get_pkcs5_iteration_count (int pkcs5_prf_id, BOOL bBoot)
int get_pkcs5_iteration_count (int pkcs5_prf_id, BOOL truecryptMode, BOOL bBoot)
{
switch (pkcs5_prf_id)
{
case RIPEMD160:
return bBoot? 327661 : 655331;
if (truecryptMode)
return bBoot ? 1000 : 2000;
else
return bBoot? 327661 : 655331;
case SHA512:
return 500000;
return truecryptMode? 1000 : 500000;
case WHIRLPOOL:
return 500000;
return truecryptMode? 1000 : 500000;
case SHA256:
return bBoot? 200000 : 500000;