diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-06-07 22:01:29 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:19:27 +0100 |
commit | c386beb69c2bb2475316c085f66a91ac0d9bdc73 (patch) | |
tree | 99a410fbd06d824e3a34434959626ed2dbfdfb16 /src/Volume/EncryptionTest.cpp | |
parent | be4ca4bac6db00538d1990ca865b55ecf2357926 (diff) | |
download | VeraCrypt-c386beb69c2bb2475316c085f66a91ac0d9bdc73.tar.gz VeraCrypt-c386beb69c2bb2475316c085f66a91ac0d9bdc73.zip |
Adapt newly added Linux/MacOSX code to the modification of key derivation introduced by VeraCrypt
Diffstat (limited to 'src/Volume/EncryptionTest.cpp')
-rw-r--r-- | src/Volume/EncryptionTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Volume/EncryptionTest.cpp b/src/Volume/EncryptionTest.cpp index cfede524..c07bbb20 100644 --- a/src/Volume/EncryptionTest.cpp +++ b/src/Volume/EncryptionTest.cpp @@ -868,22 +868,22 @@ namespace TrueCrypt Buffer derivedKey (4); Pkcs5HmacRipemd160 pkcs5HmacRipemd160; - pkcs5HmacRipemd160.DeriveKey (derivedKey, password, salt, 5); + pkcs5HmacRipemd160.DeriveKey (derivedKey, password, salt, 5, FALSE); if (memcmp (derivedKey.Ptr(), "\x7a\x3d\x7c\x03", 4) != 0) throw TestFailed (SRC_POS); Pkcs5HmacSha1 pkcs5HmacSha1; - pkcs5HmacSha1.DeriveKey (derivedKey, password, salt, 5); + pkcs5HmacSha1.DeriveKey (derivedKey, password, salt, 5, FALSE); if (memcmp (derivedKey.Ptr(), "\x5c\x75\xce\xf0", 4) != 0) throw TestFailed (SRC_POS); Pkcs5HmacSha512 pkcs5HmacSha512; - pkcs5HmacSha512.DeriveKey (derivedKey, password, salt, 5); + pkcs5HmacSha512.DeriveKey (derivedKey, password, salt, 5, FALSE); if (memcmp (derivedKey.Ptr(), "\x13\x64\xae\xf8", 4) != 0) throw TestFailed (SRC_POS); Pkcs5HmacWhirlpool pkcs5HmacWhirlpool; - pkcs5HmacWhirlpool.DeriveKey (derivedKey, password, salt, 5); + pkcs5HmacWhirlpool.DeriveKey (derivedKey, password, salt, 5, FALSE); if (memcmp (derivedKey.Ptr(), "\x50\x7c\x36\x6f", 4) != 0) throw TestFailed (SRC_POS); } |