From 24560eae1d434e57cde1aa5c7ca2d3fa0d7c42a3 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 15 Aug 2016 00:37:26 +0200 Subject: Windows: fill unused/reserved header areas with the result of encryption of random data instead of the encryption of zeros for better entropy of resulting random data. --- src/ExpandVolume/ExpandVolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ExpandVolume') diff --git a/src/ExpandVolume/ExpandVolume.c b/src/ExpandVolume/ExpandVolume.c index 82c4207e..2235af1a 100644 --- a/src/ExpandVolume/ExpandVolume.c +++ b/src/ExpandVolume/ExpandVolume.c @@ -837,7 +837,7 @@ static int ExpandVolume (HWND hwndDlg, wchar_t *lpszVolume, Password *pVolumePas PCRYPTO_INFO dummyInfo = NULL; LARGE_INTEGER hiddenOffset; - nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, newDataAreaSize, !backupHeader, backupHeader); + nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, newDataAreaSize, !backupHeader, backupHeader, FALSE); if (nStatus != ERR_SUCCESS) goto error; -- cgit v1.2.3