From 751a454e6c9de93c3954b839b0d9dfde03494d48 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 3 Jun 2014 09:12:42 +0200 Subject: Correct issue in handling hidden system partitions that made it impossible to verify their password. --- src/Common/Volumes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Common/Volumes.c') diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c index 8f60bfc0..10f9d08a 100644 --- a/src/Common/Volumes.c +++ b/src/Common/Volumes.c @@ -41,7 +41,7 @@ // Unencrypted: // 0 64 Salt // Encrypted: -// 64 4 ASCII string 'TRUE' +// 64 4 ASCII string 'VERA' // 68 2 Header version // 70 2 Required program version // 72 4 CRC-32 checksum of the (decrypted) bytes 256-511 @@ -596,7 +596,7 @@ int ReadVolumeHeader (BOOL bBoot, char *header, Password *password, PCRYPTO_INFO // PKCS5 PRF derive_key_ripemd160 (TRUE, password->Text, (int) password->Length, header + HEADER_SALT_OFFSET, - PKCS5_SALT_SIZE, 32767, dk, sizeof (dk)); + PKCS5_SALT_SIZE, bBoot ? 16384 : 32767, dk, sizeof (dk)); // Mode of operation cryptoInfo->mode = FIRST_MODE_OF_OPERATION_ID; -- cgit v1.2.3