Files
u-boot/drivers
Simon Glass a2b25780a4 luks: Add XTS cipher mode support for LUKS2
Add support for AES-XTS cipher mode in addition to the existing
AES-CBC-ESSIV support. This is the default cipher for LUKS2 volumes.

The cipher mode (CBC/XTS) is obtained from the LUKS1 cipher_mode or
LUKS2 encryption metadata.

XTS mode uses 512-byte block numbers for IV generation (plain64),
matching dm-crypt behavior. LUKS2 typically uses 4096-byte sectors
for XTS encryption but the IV is based on 512-byte block numbers.

Fix the blkmap-size calculation to exclude the LUKS header/payload
offset.

Update the LUKSv2 test to check reading a file.

Series-to: concept
Cover-letter:
luks: Support the AES-XTS cipher mode
This series finishes off the implementation of LUKSv2, adding support
for the common cipher mode and testing that files can be read from the
disk.

It includes a fix for using the correct size when mapping the crypt, as
well as some refactoring to split up the code a little better.
END

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-11-12 05:20:11 -07:00
..
2025-05-16 14:45:25 +02:00
2025-05-01 05:56:48 -06:00
2025-05-26 16:20:28 +01:00
2025-07-05 05:48:28 -06:00
2025-08-11 15:01:27 -06:00
2025-06-28 07:53:25 -06:00
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-11-11 04:09:41 -07:00
2025-05-01 05:56:48 -06:00
2025-09-24 18:29:39 -06:00
2025-06-28 07:53:25 -06:00
2025-02-03 04:43:48 -07:00
2025-07-05 05:48:28 -06:00
2025-09-24 18:29:39 -06:00