diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-20 15:04:07 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-20 15:31:24 +0100 |
commit | 4b9f8b232b956149850fc1c8b47f826a09044efa (patch) | |
tree | c083d57ad145d28cfb58b98fedfce2ab68e82eed /src/Common/Dlgcode.c | |
parent | 02cbecff6450f37498c558c1352550d647bffdfa (diff) | |
download | VeraCrypt-4b9f8b232b956149850fc1c8b47f826a09044efa.tar.gz VeraCrypt-4b9f8b232b956149850fc1c8b47f826a09044efa.zip |
Reduce time for reporting wrong password by removing support for legacy hidden format because it was never functional and it was superseded by current hidden format.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 0105de4f..9020b402 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -9024,18 +9024,6 @@ int OpenVolume (OpenVolumeContext *context, const char *volumePath, Password *pa headerOffset.QuadPart = useBackupHeader ? context->HostSize - TC_VOLUME_HEADER_SIZE : TC_HIDDEN_VOLUME_HEADER_OFFSET;
break;
- case TC_VOLUME_TYPE_HIDDEN_LEGACY:
- if (useBackupHeader)
- {
- status = ERR_PASSWORD_WRONG;
- goto error;
- }
-
- if (context->IsDevice && deviceGeometry.BytesPerSector != TC_SECTOR_SIZE_LEGACY)
- continue;
-
- headerOffset.QuadPart = context->HostSize - TC_HIDDEN_VOLUME_HEADER_OFFSET_LEGACY;
- break;
}
if (!SetFilePointerEx ((HANDLE) context->HostFileHandle, headerOffset, NULL, FILE_BEGIN))
|