diff options
Diffstat (limited to 'src/Volume/EncryptionTest.cpp')
-rw-r--r-- | src/Volume/EncryptionTest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Volume/EncryptionTest.cpp b/src/Volume/EncryptionTest.cpp index f874de8e..eed8bd15 100644 --- a/src/Volume/EncryptionTest.cpp +++ b/src/Volume/EncryptionTest.cpp @@ -847,7 +847,7 @@ namespace VeraCrypt nTestsPerformed++; } - if (nTestsPerformed != 90) + if (nTestsPerformed != 100) throw TestFailed (SRC_POS); } @@ -872,5 +872,15 @@ namespace VeraCrypt pkcs5HmacWhirlpool.DeriveKey (derivedKey, password, salt, 5); if (memcmp (derivedKey.Ptr(), "\x50\x7c\x36\x6f", 4) != 0) throw TestFailed (SRC_POS); + + Pkcs5HmacSha256 pkcs5HmacSha256; + pkcs5HmacSha256.DeriveKey (derivedKey, password, salt, 5); + if (memcmp (derivedKey.Ptr(), "\xf2\xa0\x4f\xb2", 4) != 0) + throw TestFailed (SRC_POS); + + Pkcs5HmacStreebog pkcs5HmacStreebog; + pkcs5HmacStreebog.DeriveKey (derivedKey, password, salt, 5); + if (memcmp (derivedKey.Ptr(), "\xd0\x53\xa2\x30", 4) != 0) + throw TestFailed (SRC_POS); } } |