diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-27 23:50:58 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-28 23:27:51 +0100 |
commit | 9a228ff04570a16349f23954d4497f3715b47f0d (patch) | |
tree | d05687510801e656baff220c710875a62682c8cd /src/Format/Tcformat.c | |
parent | a8cc93f99508ea9d549424f9a480bb5cb2dc68d5 (diff) | |
download | VeraCrypt-9a228ff04570a16349f23954d4497f3715b47f0d.tar.gz VeraCrypt-9a228ff04570a16349f23954d4497f3715b47f0d.zip |
Windows: use the selected hash algorithm when resuming interrupted process. This reduces volume opening time.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r-- | src/Format/Tcformat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 57660cdc..423c8fb7 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -224,7 +224,6 @@ Password volumePassword; /* User password */ char szVerify[MAX_PASSWORD + 1]; /* Tmp password buffer */
char szRawPassword[MAX_PASSWORD + 1]; /* Password before keyfile was applied to it */
-int volumePkcs5Prf = 0;
BOOL bHistoryCmdLine = FALSE; /* History control is always disabled */
BOOL ComServerMode = FALSE;
@@ -6901,7 +6900,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa {
OpenVolumeContext volume;
- if (OpenVolume (&volume, device.Path.c_str(), &volumePassword, volumePkcs5Prf, FALSE, FALSE, TRUE) == ERR_SUCCESS)
+ if (OpenVolume (&volume, device.Path.c_str(), &volumePassword, hash_algo, FALSE, FALSE, TRUE) == ERR_SUCCESS)
{
if ((volume.CryptoInfo->HeaderFlags & TC_HEADER_FLAG_NONSYS_INPLACE_ENC) != 0
&& volume.CryptoInfo->EncryptedAreaLength.Value != volume.CryptoInfo->VolumeSize.Value)
|