VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-03 17:34:52 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-11 11:12:45 (GMT)
commit335f17b72f567f1bdb9dbc84a1d42d2cf18f1245 (patch)
tree1f9f5ba97fce7448dcdaf1691d7787c75e643182 /src/Format
parent735657a25478bb81ccbb7209c27679b93a2b98e4 (diff)
downloadVeraCrypt-335f17b72f567f1bdb9dbc84a1d42d2cf18f1245.zip
VeraCrypt-335f17b72f567f1bdb9dbc84a1d42d2cf18f1245.tar.gz
Windows: in case of In-Place encryption, encrypt random data instead of existing data when filling unused space like the other cases.
Diffstat (limited to 'src/Format')
-rw-r--r--src/Format/InPlace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Format/InPlace.c b/src/Format/InPlace.c
index cfae573..f37cb8b 100644
--- a/src/Format/InPlace.c
+++ b/src/Format/InPlace.c
@@ -605,7 +605,7 @@ int EncryptPartitionInPlaceBegin (volatile FORMAT_VOL_PARAMETERS *volParams, vol
}
// Fill the reserved sectors of the backup header area with random data
- nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, dataAreaSize, FALSE, TRUE, TRUE);
+ nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, dataAreaSize, FALSE, TRUE);
if (nStatus != ERR_SUCCESS)
goto closing_seq;
@@ -1122,7 +1122,7 @@ inplace_enc_read:
}
// Fill the reserved sectors of the header area with random data
- nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, headerCryptoInfo, masterCryptoInfo->VolumeSize.Value, TRUE, FALSE, TRUE);
+ nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, headerCryptoInfo, masterCryptoInfo->VolumeSize.Value, TRUE, FALSE);
if (nStatus != ERR_SUCCESS)
goto closing_seq;