tcrypt: Support new Blake2 hash.

VeraCrypt 1.26.2 introduces support for Blake2 PRF for PBKDF2.
This patch adds support for cryptsetup.
This commit is contained in:
Milan Broz
2023-06-06 09:36:58 +02:00
parent 33a3d1ba7b
commit 9c5f555930
3 changed files with 3 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ static const struct {
{ 0, 1, "pbkdf2", "whirlpool", 500000, 15000, 1000 },
{ 0, 1, "pbkdf2", "sha256", 500000, 15000, 1000 }, // VeraCrypt 1.0f
{ 0, 1, "pbkdf2", "sha256", 200000, 0, 2048 }, // boot only
{ 0, 1, "pbkdf2", "blake2s-256", 500000, 15000, 1000 }, // VeraCrypt 1.26.2
{ 0, 1, "pbkdf2", "blake2s-256", 200000, 0, 2048 }, // boot only
{ 0, 1, "pbkdf2", "ripemd160", 655331, 15000, 1000 },
{ 0, 1, "pbkdf2", "ripemd160", 327661, 0, 2048 }, // boot only
{ 0, 1, "pbkdf2", "stribog512",500000, 15000, 1000 },

View File

@@ -80,6 +80,7 @@ function test_required()
echo "REQUIRED KDF TEST"
test_kdf sha256
test_kdf sha512
test_kdf blake2s-256
test_kdf ripemd160
test_kdf whirlpool
test_kdf stribog512

Binary file not shown.