mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-13 03:48:26 -06:00
Windows: Finalize implementation of the new volume ID mechanism. Use SHA-256 instead of SHA-512 to compute volume ID to reduce string size and make more convenient to use.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace VeraCrypt
|
||||
UseLabelInExplorer (false),
|
||||
UseVolumeID (false)
|
||||
{
|
||||
memset (VolumeID, 0, SHA512_DIGESTSIZE);
|
||||
memset (VolumeID, 0, VOLUME_ID_SIZE);
|
||||
}
|
||||
|
||||
wstring Path;
|
||||
@@ -41,7 +41,7 @@ namespace VeraCrypt
|
||||
wstring VolumePathId;
|
||||
wstring Label;
|
||||
int Pim;
|
||||
BYTE VolumeID[SHA512_DIGESTSIZE];
|
||||
BYTE VolumeID[VOLUME_ID_SIZE];
|
||||
|
||||
bool DisableHotkeyMount;
|
||||
bool DisconnectedDevice;
|
||||
|
||||
Reference in New Issue
Block a user