| Message ID | 20251112124252.1081477-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762951387; bh=DwHRpOBnwoJAPVqK3rl2vuphoH/AycBs5myvWuDpjI0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=eNMgli/8o8MHPucna8ATUudovz5IIWOq2ACLOjblOPmsp+MJGofmtoUGuQ8j1Oba1 1lDtCKKmX0yRgxWIme0XIzQdxcgd0eYHDkTB5ye/wZFxiG+qn2CSqvMDJXZUwYM8y5 mLsZe2Y9mi1HHn/XsZ55ZDfGFlgGqqz1lfUi6aansdzXJ5X6q9T1rXhcI90orqbXoO bl4LmTNBshdyfkyPKk6+RZpFZjLQzjekJYe8fp3gu5lq7Gd+rFpII2EVhjmburweJU ri/le8ScCc9+m0AIbYmPQ+2JQJFRZUOfIJW4+5Ib/cV4D11iA1Q5gmxu6gUxy1eMeX Kms1eH6JOVvVQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 92973684F3 for <u-boot-concept@u-boot.org>; Wed, 12 Nov 2025 05:43:07 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SKY26IZaqtwO for <u-boot-concept@u-boot.org>; Wed, 12 Nov 2025 05:43:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762951387; bh=DwHRpOBnwoJAPVqK3rl2vuphoH/AycBs5myvWuDpjI0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=eNMgli/8o8MHPucna8ATUudovz5IIWOq2ACLOjblOPmsp+MJGofmtoUGuQ8j1Oba1 1lDtCKKmX0yRgxWIme0XIzQdxcgd0eYHDkTB5ye/wZFxiG+qn2CSqvMDJXZUwYM8y5 mLsZe2Y9mi1HHn/XsZ55ZDfGFlgGqqz1lfUi6aansdzXJ5X6q9T1rXhcI90orqbXoO bl4LmTNBshdyfkyPKk6+RZpFZjLQzjekJYe8fp3gu5lq7Gd+rFpII2EVhjmburweJU ri/le8ScCc9+m0AIbYmPQ+2JQJFRZUOfIJW4+5Ib/cV4D11iA1Q5gmxu6gUxy1eMeX Kms1eH6JOVvVQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7ECD8684CC for <u-boot-concept@u-boot.org>; Wed, 12 Nov 2025 05:43:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762951384; bh=DYMmk0QiwBI8hyKEyAeq06UR5Wv7e4/fc+L7uNnkw00=; h=From:To:Cc:Subject:Date:From; b=Hf3HGBBQdVWPT1MrCMJ0PC27Q5hhvpRspXyQP50HOpJGpOXzakzSHbBWmDI4E7FtT zBftiakGMbpxSSmqYWAJ+5YiUb3yO+x3a9LPTHIOor7SQvJ8TNdCGLGRzL1D8ffhS+ zDfTXxJA32604gFdt9/Dgk9wBsX+8a5LgxZ0Zh9n52zDSFAOY3KUcJXMc8FDLi/vP2 XviEXreXeYXyEO369+48V2nZRiNNXfiRMkTGPA4HuJl44+kCaFUAUnh42DdYPvJ88c 9GEB+04eGMfxugcaQ2YnOGbs75Jxv6JHLioMMD5MDn3JXJ5EEubtNQ1hZRIL72F/8D ywJAupYUHdpYw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C2FE76843C; Wed, 12 Nov 2025 05:43:04 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id S2fcrF2hRU37; Wed, 12 Nov 2025 05:43:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762951380; bh=Od4Eq3RTAESxFZysBlILGJX90nuHuVBL1Y62Y/VzPSA=; h=From:To:Cc:Subject:Date:From; b=Us2FWJg7ZsWK5b7Bh9lgGfV1Y246zXF2SM/LD5z28Jn6T1uTBu/LpJkjglvc72HtV RPpNWBEKbsiBWcwymJWlqM3YbwQHkuvmEzioLTJWyP2uF/lLbFS7Pwd1UGB1gHACSs Rw7PhDyLwEkmOITHCDvuMLWudLv3lGHvWQSWpLKFacbC64J2ZtmvZCvRtpn1dxjT1T 6MyPOFMEHKWgOYCQoztWfNoa9OUYf55f7E3GtlwCsSB3xcOxRGdpZO5QmABU3bGRlX 8g+yDpA9lq834DuZ4fTWOzlLRO+Ks1y5oN1ZVyLpNVGAfuELlm08SkcritlJzbqoEt F/AFKkgXgPS5w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6FBDA68375; Wed, 12 Nov 2025 05:43:00 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 12 Nov 2025 05:42:41 -0700 Message-ID: <20251112124252.1081477-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: KLHB2BZV4X5CWV3CDJS2LFMWXBHFDB4Q X-Message-ID-Hash: KLHB2BZV4X5CWV3CDJS2LFMWXBHFDB4Q X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 0/5] luks: Support the AES-XTS cipher mode List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/KLHB2BZV4X5CWV3CDJS2LFMWXBHFDB4Q/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| 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