From f5606a44a6331715e9a8a43d6f4441f0cd89cb3a Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 14 Apr 2016 08:52:06 +0200 Subject: 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. --- src/Mount/Favorites.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Mount/Favorites.h') diff --git a/src/Mount/Favorites.h b/src/Mount/Favorites.h index 538ec1db..84ab2a25 100644 --- a/src/Mount/Favorites.h +++ b/src/Mount/Favorites.h @@ -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; -- cgit v1.2.3