Re: [PATCH v8 13/18] cryptodisk: Properly handle non-512 byte sized sectors

2020-12-12 Thread Patrick Steinhardt
On Tue, Dec 08, 2020 at 04:45:44PM -0600, Glenn Washburn wrote: > By default, dm-crypt internally uses an IV that corresponds to 512-byte > sectors, even when a larger sector size is specified. What this means is > that when using a larger sector size, the IV is incremented every sector. >

[PATCH v8 13/18] cryptodisk: Properly handle non-512 byte sized sectors

2020-12-08 Thread Glenn Washburn
By default, dm-crypt internally uses an IV that corresponds to 512-byte sectors, even when a larger sector size is specified. What this means is that when using a larger sector size, the IV is incremented every sector. However, the amount the IV is incremented is the number of 512 byte blocks in a