From 9b394ddc49c54765c4a0abf75472221963c108d2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 20 Oct 2019 21:50:41 +0200 Subject: Windows: Avoid unnecessary write operations when copying/modifying EFI bootloader files in order to avoid leaking modification timestamp --- src/Common/BootEncryption.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Common/BootEncryption.h') 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); -- cgit v1.2.3