mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Implement Evil-Maid-Attack detection mechanism. Write the correct bootloader when changing the system encryption password: this enables to recover if an attack is detected.
This commit is contained in:
@@ -1029,7 +1029,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
||||
IO_STATUS_BLOCK IoStatus;
|
||||
LARGE_INTEGER offset;
|
||||
byte readBuffer [TC_SECTOR_SIZE_BIOS];
|
||||
|
||||
|
||||
if (!ValidateIOBufferSize (Irp, sizeof (GetSystemDriveConfigurationRequest), ValidateInputOutput))
|
||||
break;
|
||||
|
||||
@@ -1493,6 +1493,10 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
||||
ReopenBootVolumeHeader (Irp, irpSp);
|
||||
break;
|
||||
|
||||
case VC_IOCTL_GET_BOOT_LOADER_FINGERPRINT:
|
||||
GetBootLoaderFingerprint (Irp, irpSp);
|
||||
break;
|
||||
|
||||
case TC_IOCTL_GET_BOOT_ENCRYPTION_ALGORITHM_NAME:
|
||||
GetBootEncryptionAlgorithmName (Irp, irpSp);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user