From: Simon Glass <simon.glass@canonical.com> 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. Simon Glass (5): luks: Exclude the payload from the size calculation luks: test: Check file access in the decryption tests luks: Move blkmap crypt code into a separate file luks: Split out crypt reading into its own function luks: Add XTS cipher mode support for LUKS2 drivers/block/Makefile | 1 + drivers/block/blkmap.c | 204 +---------------- drivers/block/blkmap_crypt.c | 394 ++++++++++++++++++++++++++++++++ drivers/block/blkmap_internal.h | 74 ++++++ drivers/block/luks.c | 50 +++- include/blkmap.h | 13 +- include/luks.h | 10 +- test/boot/luks.c | 41 +++- 8 files changed, 568 insertions(+), 219 deletions(-) create mode 100644 drivers/block/blkmap_crypt.c create mode 100644 drivers/block/blkmap_internal.h -- 2.43.0 base-commit: b68c8fb93b11ce80b683e06d09de74266e4e53f6 branch: sece-fix