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.

This commit is contained in:
Mounir IDRASSI committed 2016-08-15 01:09:20 +02:00
1 parent 67031da928
commit 24560eae1d
6 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -568,7 +568,7 @@ begin_format:
{
BOOL bUpdateBackup = FALSE;
nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, dataAreaSize, FALSE, FALSE);
nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, dataAreaSize, FALSE, FALSE, FALSE);
if (nStatus != ERR_SUCCESS)
goto error;