VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-07-14 18:58:04 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-07-14 23:59:31 +0200
commitad544681c7f20417691b231f330a62f9f315ed86 (patch)
treea8d61516fc6e8db70e3af3a7506da165cda0e7a2 /src
parent2fb4489e22850837f35b194f01275878b2c1ec94 (diff)
downloadVeraCrypt-ad544681c7f20417691b231f330a62f9f315ed86.tar.gz
VeraCrypt-ad544681c7f20417691b231f330a62f9f315ed86.zip
Linux/macOS: re-order PRF algorithms from faster to slower for quicker autodetection mounting when usual algorithms used
Diffstat (limited to 'src')
-rw-r--r--src/Volume/Pkcs5Kdf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Volume/Pkcs5Kdf.cpp b/src/Volume/Pkcs5Kdf.cpp
index fd49d2e2..ba5f46dd 100644
--- a/src/Volume/Pkcs5Kdf.cpp
+++ b/src/Volume/Pkcs5Kdf.cpp
@@ -56,15 +56,15 @@ namespace VeraCrypt
if (truecryptMode)
{
- l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacRipemd160 (true)));
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacSha512 (true)));
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacWhirlpool (true)));
+ l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacRipemd160 (true)));
}
else
{
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacSha512 (false)));
- l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacWhirlpool (false)));
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacSha256 ()));
+ l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacWhirlpool (false)));
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacRipemd160 (false)));
l.push_back (shared_ptr <Pkcs5Kdf> (new Pkcs5HmacStreebog ()));
}