VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/BootEncryption.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-20 21:50:41 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-20 22:17:12 +0200
commit9b394ddc49c54765c4a0abf75472221963c108d2 (patch)
treec87ef65132fbac903b0500b9caf2861afe35e603 /src/Common/BootEncryption.h
parent31a87c2e5ff2d6a66d72dea662bb2beb7a7de6f1 (diff)
downloadVeraCrypt-9b394ddc49c54765c4a0abf75472221963c108d2.tar.gz
VeraCrypt-9b394ddc49c54765c4a0abf75472221963c108d2.zip
Windows: Avoid unnecessary write operations when copying/modifying EFI bootloader files in order to avoid leaking modification timestamp
Diffstat (limited to 'src/Common/BootEncryption.h')
-rw-r--r--src/Common/BootEncryption.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h
index cc782966..9ae90942 100644
--- a/src/Common/BootEncryption.h
+++ b/src/Common/BootEncryption.h
@@ -211,6 +211,8 @@ namespace VeraCrypt
void ReadFile(const wchar_t* name, byte* data, DWORD size);
void CopyFile(const wchar_t* name, const wchar_t* targetName);
bool FileExists(const wchar_t* name);
+ static bool CompareFiles (const wchar_t* fileName1, const wchar_t* fileName2);
+ static bool CompareFileData (const wchar_t* fileName, const byte* data, DWORD size);
BOOL RenameFile(const wchar_t* name, const wchar_t* nameNew, BOOL bForce);
BOOL DelFile(const wchar_t* name);