[Concept,0/5] luks: Support the AES-XTS cipher mode

Message ID 20251112124252.1081477-1-sjg@u-boot.org
Headers
Series luks: Support the AES-XTS cipher mode |

Message

Simon Glass Nov. 12, 2025, 12:42 p.m. UTC
  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