Re: [CRYPTO-LUKS v2 03/19] cryptodisk: Incorrect calculation of sector in grub_cryptodisk_read/write.

2020-08-24 Thread Glenn Washburn
Ignore this patch, I neglected to run my test until after I had sent the patch. My tests immediately found an error. Please see version v3. On Mon, 24 Aug 2020 18:42:30 -0500 Glenn Washburn wrote: > Here dev is a grub_cryptodisk_t and dev->offset is offset in sectors > of size native to the

[CRYPTO-LUKS v2 03/19] cryptodisk: Incorrect calculation of sector in grub_cryptodisk_read/write.

2020-08-24 Thread Glenn Washburn
Here dev is a grub_cryptodisk_t and dev->offset is offset in sectors of size native to the cryptodisk device. The sector is correctly transformed into native grub sector size, but then added to dev->offset which is not transformed. Create function grub_disk_from_native_sector to do the native disk