mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-09 01:56:35 -05:00
Reduce excessive iterations count while on the same time keep very high security
This commit is contained in:
1 parent
9cf14a3573
commit
4e5c86b8c9
1 file changed
+4
-4
+4
-4
@@ -630,16 +630,16 @@ int get_pkcs5_iteration_count (int pkcs5_prf_id, BOOL bBoot)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
case RIPEMD160:
|
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:
|
case SHA512:
|
||||||
return 1000000;
|
return 500000;
|
||||||
|
|
||||||
case SHA1: // Deprecated/legacy
|
case SHA1: // Deprecated/legacy
|
||||||
return 2000000;
|
return 1000000;
|
||||||
|
|
||||||
case WHIRLPOOL:
|
case WHIRLPOOL:
|
||||||
return 1000000;
|
return 500000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user