VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Volumes.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-06-03 09:12:42 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:19:15 +0100
commit751a454e6c9de93c3954b839b0d9dfde03494d48 (patch)
tree0f150c24a774e7b44d3fd065c5f20763fd2558f8 /src/Common/Volumes.c
parent9b19baf73e8c9dbd60ee36bcd1cb910bf01fa3d7 (diff)
downloadVeraCrypt-751a454e6c9de93c3954b839b0d9dfde03494d48.tar.gz
VeraCrypt-751a454e6c9de93c3954b839b0d9dfde03494d48.zip
Correct issue in handling hidden system partitions that made it impossible to verify their password.
Diffstat (limited to 'src/Common/Volumes.c')
-rw-r--r--src/Common/Volumes.c4
1 files changed, 2 insertions, 2 deletions
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;