From 2d72e42c6c0abd96e01fdcfb2737977dbda8edbe Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 14 Aug 2016 23:01:26 +0200 Subject: Windows: Implement Rescue Disk support for EFI system encryption --- src/Common/BootEncryption.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Common/BootEncryption.h') diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h index dd8346d7..c8c9e29f 100644 --- a/src/Common/BootEncryption.h +++ b/src/Common/BootEncryption.h @@ -46,6 +46,7 @@ namespace VeraCrypt void Write (byte *buffer, DWORD size); void SeekAt (int64 position); void GetFileSize (unsigned __int64& size); + void GetFileSize (DWORD& dwSize); bool IoCtl(DWORD code, void* inBuf, DWORD inBufSize, void* outBuf, DWORD outBufSize); protected: @@ -277,7 +278,7 @@ namespace VeraCrypt bool SystemPartitionCoversWholeDrive (); bool SystemDriveIsDynamic (); bool VerifyRescueDisk (); - bool VerifyRescueDiskIsoImage (const wchar_t* imageFile); + bool VerifyRescueDiskImage (const wchar_t* imageFile); void WipeHiddenOSCreationConfig (); void WriteBootDriveSector (uint64 offset, byte *data); void WriteBootSectorConfig (const byte newConfig[]); @@ -308,6 +309,8 @@ namespace VeraCrypt int SelectedPrfAlgorithmId; Partition HiddenOSCandidatePartition; byte *RescueIsoImage; + byte *RescueZipData; + unsigned long RescueZipSize; byte RescueVolumeHeader[TC_BOOT_ENCRYPTION_VOLUME_HEADER_SIZE]; byte VolumeHeader[TC_BOOT_ENCRYPTION_VOLUME_HEADER_SIZE]; bool DriveConfigValid; -- cgit v1.2.3