| Message ID | 20251111124131.1198930-15-sjg@u-boot.org |
|---|---|
| State | New |
| 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=1762864969; bh=Te60GQ7oIXDagEllyuwM4V0UCKgyPfZ8VXRq5xi5dtI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=uIlNp98AiTqTJmW2pRK8gGJl4ica2oBpZz4ZWNxK9IxKssjvdgyThVS8hiUJ6GvIC LDO+CfuaNBZ3CQMTBWGd3XrXDgdHkOsdRZk4Qm3APaSNmKRkJPu05GpSQxM3+eZLIo gZj8lGRz8mHhgneanNmheXg3QSxMBgGaAbZ1E1muVoQB5RCDDS7NPlIgz55S82k+D5 My1zOvbw+RbrI0DfYB/qodW+n27/G4INL6ZFj1BRZiUlVmR8kzy3ZHYV1RCwV4yizs EE1KOVFa/tlw0qub+ThGGTEntfN3XkJ1z60jHZsBHUwdW9WmP/QVCq6VRXVeG1JP6D qW1xmz9OtPzcg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 513B368484 for <u-boot-concept@u-boot.org>; Tue, 11 Nov 2025 05:42:49 -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 95Bo3CS5fR2r for <u-boot-concept@u-boot.org>; Tue, 11 Nov 2025 05:42:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762864967; bh=Te60GQ7oIXDagEllyuwM4V0UCKgyPfZ8VXRq5xi5dtI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Xb0Lpkvl+gbddgzH53d40uc8x6GYd0gQsun26F6IsdN2UJR7ZeGRWdudf8Hf3Yv20 kBLONzRJNhB5kbw8lUYJDkBTz/ygXCV68mvApg5UH6K+VimrJsfyM3RveWtKI2/khm eBA7JoXQUxMQppQ5HTvezLckpb65noGiyKMYQCveoFPpyxJFGCTDeCO3JnTwTl4m1I lL4xt9UpJvTb/56wlJ/zCwfwthRKjrmbHiCuVPzPubqyeMcEOrTqa6mlX8Gm5KyMYR 8nECrHabXh3vTkauchagDt633MmU7rTq3c8DutxrvaaEsyiaDN8bo0vwk0AMv7RKjW f9GhHT5MVksaQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7D10768539 for <u-boot-concept@u-boot.org>; Tue, 11 Nov 2025 05:42:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762864964; bh=TjB+/yhDytnNiT1UZkpFhh/lG2TKqCjVMwDwcvs1v3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CkBJFbt8+pQs/pzUqScEcl/p8hgjDqEpRildkvN0bKHCT3Xlq16akep3uVLECsZNx Rn2hJbPuz0nvC2iEQjww0AT9lqgB/cNOTMSIlU6kDcqbNfisl6Tq3V4kh1MxrxxQVv vEISfNU8w/Vyyx7vKBM/o1P8ZIdCphEIe68vyDojgLXDNe/dTojgFEK5wpiRq62/+Q VM4lvsFvAdzmsKwp1taH+N7VjAD8SkEgZfiAvmrCe2RvSgtCf+/769wykkzuTXNFW+ VAO16C/YOP9kxbAgkAvWVexDyyDmQNNqwgYwzksf7Jn2de5p6RFxOEviXVfrqpRIfa GUCyOQXmhWA1Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 324CC68484; Tue, 11 Nov 2025 05:42:44 -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 Y2A8-vwf8jYH; Tue, 11 Nov 2025 05:42:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1762864964; bh=XhvIbkSHzxnRjlZqC/kBQ78NVojsCzrO8EzZHFzSTUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ikXvEiOkEqHs30U7AT2omW0YBodTdXKtROGK67qCQVmSNcYWmm0BAHJIqtEVPtEMZ 5dwZaK/VxjZrgNu0AFjgyPvEIb+Ue0OM35OOBkk2UY1XGHMSwW+QVZ4dnF1pwXO1KL TPETztQYG9e/FUp/w1NQMQEfihze6XVRPBeqIBHCbTMPtc1xRUBBW/dWbxNotNRQRd 1gpl9Qh2SDHr0x6lX5ykgy5OBYDHcZbts0TkhHaG9GZohRQkVJu+onkth334Tni8rw izeSQJVj4FncsQ2YRu0qE/LJMK32sHBO2P4BCq0k9aMasHI9b82wOieK3vZmuuwE9G T1OupjvGqbsOA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AA5C768472; Tue, 11 Nov 2025 05:42:43 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 11 Nov 2025 05:41:20 -0700 Message-ID: <20251111124131.1198930-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251111124131.1198930-1-sjg@u-boot.org> References: <20251111124131.1198930-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: GZ7USSQUU47DOE2CCDP3P45U3AVADC5E X-Message-ID-Hash: GZ7USSQUU47DOE2CCDP3P45U3AVADC5E 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: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/15] luks: Enable LUKSv2 support in the luks command 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/GZ7USSQUU47DOE2CCDP3P45U3AVADC5E/> 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: Provide support for LUKSv2
|
|
Commit Message
Simon Glass
Nov. 11, 2025, 12:41 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Allow unlocking a v2 LUKS partition. Signed-off-by: Simon Glass <simon.glass@canonical.com> --- cmd/luks.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmd/luks.c b/cmd/luks.c index 19f909be96b..c1e8035e685 100644 --- a/cmd/luks.c +++ b/cmd/luks.c @@ -85,10 +85,7 @@ static int do_luks_unlock(struct cmd_tbl *cmdtp, int flag, int argc, return CMD_RET_FAILURE; } - if (version != LUKS_VERSION_1) { - printf("Only LUKS1 is currently supported\n"); - return CMD_RET_FAILURE; - } + printf("Unlocking LUKS%d partition...\n", version); /* Unlock the partition to get the master key */ ret = luks_unlock(dev_desc->bdev, &info, passphrase, master_key,