| Message ID | 20260901154845.102123-10-philippe.reynes@softathome.com |
|---|---|
| State | Superseded |
| Delegated to: | Raymond Mao |
| Headers | show
Return-Path: <u-boot-bounces@lists.u-boot-project.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=ej4JLreD; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=KXEk7VTx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZ9KF3xy4z1xwZ for <incoming@patchwork.ozlabs.org>; Wed, 02 Sep 2026 01:49:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 721DC60794; Tue, 1 Sep 2026 15:49:34 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PAh2mghNjnbB; Tue, 1 Sep 2026 15:49:33 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1788277772; bh=n2Hah7R7PHu6UwQFEGDJLv5laxPOvP81vayzFjcPWcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ej4JLreDJGDRAx55pcF2Gd0N+iHXfp1c6Y/q+YKBpPohar711jZCUCLUBsJQyN3xH HCCCquDIc1kKQYm8oh9Wjmfj18F7deTsH3UBRtrEUfCs7Zmz3p8eNTsos2dNvj91Xp EwEmQtqnlicdoIY2yKB10roRn2vhbwbW/vp/tYSokwOtZnmxDX/198y4ktR7DYh4c5 OjW4ZDNlMWteSz0QjHWKQRJpIYmNpdMJjTizkttj6O0r2M/In2iTXDLUSbk5B4UmfY WVNxJXVfwXwZaWOA6NwcoaGuAHgZNjfbt76ptoEyEdi6tPj8TgOsIlc4NyBkiNqkXO ppNrPfbe1YL2A== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id BA196607A1; Tue, 1 Sep 2026 15:49:32 +0000 (UTC) X-Original-To: u-boot@lists.u-boot-project.org Delivered-To: u-boot@lists.u-boot-project.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id CFA75E45 for <u-boot@lists.u-boot-project.org>; Tue, 1 Sep 2026 15:49:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B61286076B for <u-boot@lists.u-boot-project.org>; Tue, 1 Sep 2026 15:49:29 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id AgOFIn6_jd9p for <u-boot@lists.u-boot-project.org>; Tue, 1 Sep 2026 15:49:29 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=philippe.reynes@softathome.com; receiver=<UNKNOWN> Authentication-Results: smtp3.osuosl.org; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=KXEk7VTx Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by smtp3.osuosl.org (Postfix) with ESMTPS id BCE4060766 for <u-boot@lists.u-boot-project.org>; Tue, 1 Sep 2026 15:49:28 +0000 (UTC) Received: by phobos.denx.de (Postfix, from userid 109) id DBC3A84A48; Tue, 1 Sep 2026 17:49:22 +0200 (CEST) Received: from MRZP264CU002.outbound.protection.outlook.com (mail-francesouthazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c207::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E36C484994 for <u-boot@lists.denx.de>; Tue, 1 Sep 2026 17:48:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="KXEk7VTx"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lrZ8NIhJdhoX3jcGDf3MCoI0fKparl+Vlu07SNgDvm5w7VF079wzvd9Vt/gEf46AYNNMDjtwjLJeEr+QKHIu1eg0d8duMsDKk1mAp+k2vXAkUDSGwkAMzO5NvhnqINT0aRGYAtl+RS0GfIUai5miH2O18zdamTm8jQhTpAL3WRhONybg/XCLVbhLxrk1Qarlf4JCAQ3sZqbBeITb4UyLxSWQ5UzXD5kaFzwGC4foXhsGgCLBG1+rk/5VQqv0jqhKdYA/TW2PBwRoYGqHi4BrDXksE6I6V6rnocfW+8OJvjoZb5bxePGh4Hwfqe+0qUuwgMYm2n6z1vWiivwGnPiZaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n2Hah7R7PHu6UwQFEGDJLv5laxPOvP81vayzFjcPWcM=; b=g+tUeIy/4jY5tzJUDpf8iewmzp//vmGPhI9Vp70WLERAjy7xTuXjXq6meEFtXGhHCNmOVwPHS+kJSpjRIvQyO25jVCJgIn6lB16kBN7UmqGHkNVJk3SwTuMhv/kTxiKgbW35p1RQNBLp44ggUS+pUr4uCj+ptATHe8+vDnz6G/qyxtJRB8qOV18i14ZELGj4OUP/1Q8LvUo30GFuzYBgUThpJCnLxSDAZhucMYf9ib9flgyOItvMRcEpCf+RpY+hjsbZm4i3WPx2xNXtiUwMoFTNM8GsH3VDm2zH8wxo6XBMrdSdjaLOMGLEzhGPLTb9eZX4nG75q+Rqqp8DkIMF7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=canonical.com smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n2Hah7R7PHu6UwQFEGDJLv5laxPOvP81vayzFjcPWcM=; b=KXEk7VTxPut+GZUucOtLwBdT3wpyPj5n2mvOacW3SN9ceHiW4dCIZWLr6Tw6HzREUDUgX7S5wGpBBipOZ5jLBTLTH5+BVfIrggt92cbJR/F7edjuJbULx5H4Zgf5OsPxIhCVCDiwE1/yCcS1KPLKmLW78LUPEUzEhoezPOCpqs6T6ZjQ4T3xFsc3OUorTWRXSH4Fx3kNn/iJY4wLf/s5Cy9Wq98CeN/St3crCM1gIyGYlBRECafqKu8qXQvz9hxNaN22XQCbUGpjKkvfn7A9RI8FnJ6xWkXNy3ic7Vt+0vPoyZHpCl7ifzlW48yji/JGdNf/mEqiOBcSHa9gk4nipw== Received: from PR3P193CA0059.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:51::34) by MR1P264MB3473.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:23::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.13; Tue, 1 Sep 2026 15:48:53 +0000 Received: from PA3PEPF000089BA.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:51:cafe::26) by PR3P193CA0059.outlook.office365.com (2603:10a6:102:51::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.13 via Frontend Transport; Tue, 1 Sep 2026 15:48:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; pr=C Received: from proxy.softathome.com (149.6.166.170) by PA3PEPF000089BA.mail.protection.outlook.com (10.167.242.22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Tue, 1 Sep 2026 15:48:53 +0000 Received: from sah1lpt726.softathome.com (unknown [192.168.72.32]) by proxy.softathome.com (Postfix) with ESMTPSA id E4FAA1FEAF; Tue, 1 Sep 2026 17:48:52 +0200 (CEST) From: Philippe Reynes <philippe.reynes@softathome.com> To: marko.makela@iki.fi, jonny.green@keytechinc.com, raymondmaoca@gmail.com, trini@konsulko.com, simon.glass@canonical.com Cc: u-boot@lists.denx.de, Philippe Reynes <philippe.reynes@softathome.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v9 09/15] tools: fit_image_setup_sig: set required_keynode to -1 Date: Tue, 1 Sep 2026 17:48:38 +0200 Message-ID: <20260901154845.102123-10-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260901154845.102123-1-philippe.reynes@softathome.com> References: <20260901154845.102123-1-philippe.reynes@softathome.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA3PEPF000089BA:EE_|MR1P264MB3473:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 274ac77d-db9d-4691-b893-08df08408620 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|376014|23010399003|36860700016|6133799003|10067099003|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: CVPTzPo1xNH3+ihue1R48Oh2rAE/qPj+kcxPgfnvL2bdanaRMmsJaYRrMhukPlYD1o2Qg7DqaG8odOzWJ2QHGax6eb79KAy9TyJNSMDwNTri45zYFaw385k8+Y8vFT1I9rij45kNA+XSx+RqHJ/fCzsujfLTeMA5c9nR4I7UcmQOQvv8B3AO6rFvOh/NHjh0yBnt1AVnFqu2JCMu9SXi+mHzYw/NTNvtOT6JwK2lIKnwEr3jzKOwYnDiuobbo6sm5jGew1+nkzkYRbhhFjdPLJMPXy/k2uyuhlwKo8y9jZ+KO/nSUKhK4xzzGIGkeyV0zyCxF074AnUnRDHOHEQw1K1jp3reLGoWTAAGjVfnwIAgCX/V3z0DfbsFBF8d1bvsyshoNa6Rmpy6LJz3v2S3sBUennOhCSwCsLb7Vxl2jjJBtN0SfqsLOV+OF6mRZprVvXrQOcjSJLyAKreRV1636C2sLKgd62cqp/ynR/eFd+C66d1mPjNZlzCpSD7N85Zv8KL8HyPBe1FAOOLkFcnoocLfJgS5ZioX3pnCrmlLsoQs4ujbn80pfAbjH5RY60yUb7KGYQm2hAS8h+cnzGgubDuZtPyOjYQ6HWeRITUp3Y2uDFnQm++0G89aYBgOeIKPof0LicNGjYY0zyQQGQqdSH4isAQ9pYnH16MAD5bj+1r+Cp+t/NrVhTWSWRSTVoveXyIbjiARR7ihmqtHqv07Pg== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(376014)(23010399003)(36860700016)(6133799003)(10067099003)(56012099006)(22082099003)(18002099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ST1l5GdtrcBlCXDBZxOcdW1x8oHVahaLNzrW1axR2OcpM48699ipl8w9pDm8TXACJiBNhwg3NyZwg/GT/IrslqxISyMjMhqEonLHS1ldmAfrwKAuabhjjtNATia1hFMYsKXUTccvHc2ppz/FN1ANnQ7v4GV2Gyvd6yu9MJxxFkoe3qdnlYbg40tLyHC6yYLuMCON/w44B0CzGgJO65orKdOBz5ajlUXh67B6aC4C4WC/ay6rqV65rKByykb2QrOY2HmI5FKzgjScJoRT8m+v1CCoPqq3Ineqn2AVSPue6WTkDlGCVihB72lEiBIjAAg+A06WaBJ6kzq/atgDdhUSDuxMxnbSCjG8z+G2ZPp3eYYohRy0tdFDpFRtdsWfhGFuQyePHU6lFO4kbCVmuKw3V1oNco8kDpZk5bakVO16GUZwBvkDJqvQkYLjFjlBzhfz X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2026 15:48:53.0607 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 274ac77d-db9d-4691-b893-08df08408620 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: PA3PEPF000089BA.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR1P264MB3473 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org> List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>, <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe> List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.u-boot-project.org> List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help> List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe> Errors-To: u-boot-bounces@lists.u-boot-project.org |
| Series |
add software ecdsa support
|
expand
|
diff --git a/lib/ecdsa/ecdsa-verify.c b/lib/ecdsa/ecdsa-verify.c index 494b60b4ab0..341486de2d3 100644 --- a/lib/ecdsa/ecdsa-verify.c +++ b/lib/ecdsa/ecdsa-verify.c @@ -117,7 +117,7 @@ static int ecdsa_verify_hash(struct udevice *dev, if (!ops || !ops->verify) return -ENODEV; - if (info->required_keynode > 0) { + if (info->required_keynode >= 0) { ret = fdt_get_key(&key, info->fdt_blob, info->required_keynode); if (ret < 0) return ret; diff --git a/tools/image-host.c b/tools/image-host.c index 46036673050..9a85a3dda2f 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -202,6 +202,7 @@ static int fit_image_setup_sig(struct image_sign_info *info, info->checksum = image_get_checksum_algo(algo_name); info->crypto = image_get_crypto_algo(algo_name); info->padding = image_get_padding_algo(padding_name); + info->required_keynode = -1; info->require_keys = require_keys; info->engine_id = engine_id; if (!info->checksum || !info->crypto) {