mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Correct displaying wrong TrueCrypt mode in volume properties when SHA-256 is used. Issue reported and fixed by user Ache on CodePlex (https://veracrypt.codeplex.com/workitem/65)
This commit is contained in:
@@ -683,7 +683,10 @@ int get_pkcs5_iteration_count (int pkcs5_prf_id, BOOL truecryptMode, BOOL bBoot)
|
|||||||
return truecryptMode? 1000 : 500000;
|
return truecryptMode? 1000 : 500000;
|
||||||
|
|
||||||
case SHA256:
|
case SHA256:
|
||||||
return bBoot? 200000 : 500000;
|
if (truecryptMode)
|
||||||
|
return 0; // SHA-256 not supported by TrueCrypt
|
||||||
|
else
|
||||||
|
return bBoot? 200000 : 500000;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
TC_THROW_FATAL_EXCEPTION; // Unknown/wrong ID
|
TC_THROW_FATAL_EXCEPTION; // Unknown/wrong ID
|
||||||
|
|||||||
Reference in New Issue
Block a user