mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-08 01:36:34 -05:00
Linux/MacOSX : fix encryption/decryption issues with hard drives that have a sector size bigger than 512. Now, we use the sector size as the minimum unit for data fragment encryption/decryption.
This commit is contained in:
1 parent
067394d110
commit
ea03100d9e
1 file changed
+1
-1
@@ -108,7 +108,7 @@ namespace VeraCrypt
|
||||
workItem->Encryption.StartUnitNo = fragmentStartUnitNo;
|
||||
workItem->Encryption.SectorSize = sectorSize;
|
||||
|
||||
fragmentData += unitsPerFragment * ENCRYPTION_DATA_UNIT_SIZE;
|
||||
fragmentData += unitsPerFragment * sectorSize;
|
||||
fragmentStartUnitNo += unitsPerFragment;
|
||||
|
||||
if (remainder > 0 && --remainder == 0)
|
||||
|
||||
Reference in new issue
Block a user