Re: [PATCH v7 11/17] cryptodisk: Properly handle non-512 byte sized sectors

2020-12-06 Thread Patrick Steinhardt
On Fri, Dec 04, 2020 at 10:43:40AM -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. > However,

[PATCH v7 11/17] cryptodisk: Properly handle non-512 byte sized sectors

2020-12-04 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