VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-06-10 16:07:01 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:19:42 (GMT)
commit7875d3ec3fb130e7db586d977c8f4f21f736963d (patch)
tree55389b41f4c90536a97aadd20d48149b7d6f27d0 /src/Volume
parentf701dc1c292e59f60355adb80aa8a9bf9199c36a (diff)
downloadVeraCrypt-7875d3ec3fb130e7db586d977c8f4f21f736963d.zip
VeraCrypt-7875d3ec3fb130e7db586d977c8f4f21f736963d.tar.gz
Set volume header to 'VERA' instead of 'TRUE' in newly added Linux/MacOSX code
Diffstat (limited to 'src/Volume')
-rw-r--r--src/Volume/VolumeHeader.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Volume/VolumeHeader.cpp b/src/Volume/VolumeHeader.cpp
index f31111c..5074677 100644
--- a/src/Volume/VolumeHeader.cpp
+++ b/src/Volume/VolumeHeader.cpp
@@ -136,10 +136,10 @@ namespace TrueCrypt
if (header.Size() != EncryptedHeaderDataSize)
throw ParameterIncorrect (SRC_POS);
- if (header[0] != 'T' ||
- header[1] != 'R' ||
- header[2] != 'U' ||
- header[3] != 'E')
+ if (header[0] != 'V' ||
+ header[1] != 'E' ||
+ header[2] != 'R' ||
+ header[3] != 'A')
return false;
size_t offset = 4;
@@ -285,10 +285,10 @@ namespace TrueCrypt
header.Zero();
- header[0] = 'T';
- header[1] = 'R';
- header[2] = 'U';
- header[3] = 'E';
+ header[0] = 'V';
+ header[1] = 'E';
+ header[2] = 'R';
+ header[3] = 'A';
size_t offset = 4;
header.GetRange (DataAreaKeyOffset, DataAreaKey.Size()).CopyFrom (DataAreaKey);