Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218037/?format=api
{ "id": 2218037, "url": "http://patchwork.ozlabs.org/api/patches/2218037/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260331100047.34618-5-philippe.reynes@softathome.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260331100047.34618-5-philippe.reynes@softathome.com>", "list_archive_url": null, "date": "2026-03-31T10:00:36", "name": "[v3,04/15] drivers: crypto: add software ecdsa support", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "096b3b47f4fd9d52a94836473987da86ea6c1528", "submitter": { "id": 74351, "url": "http://patchwork.ozlabs.org/api/people/74351/?format=api", "name": "Philippe Reynes", "email": "philippe.reynes@softathome.com" }, "delegate": { "id": 161313, "url": "http://patchwork.ozlabs.org/api/users/161313/?format=api", "username": "raymo200915", "first_name": "Raymond", "last_name": "Mao", "email": "raymondmaoca@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260331100047.34618-5-philippe.reynes@softathome.com/mbox/", "series": [ { "id": 498164, "url": "http://patchwork.ozlabs.org/api/series/498164/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498164", "date": "2026-03-31T10:00:34", "name": "add software ecdsa support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/498164/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218037/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218037/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com\n header.b=ojeVbFIE;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=softathome.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.b=\"ojeVbFIE\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=softathome.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=philippe.reynes@softathome.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flNtY4nJZz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 21:01:25 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id EF6D48406D;\n\tTue, 31 Mar 2026 12:01:02 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id BF1BD840D8; Tue, 31 Mar 2026 12:01:00 +0200 (CEST)", "from PA5P264CU001.outbound.protection.outlook.com\n (mail-francecentralazlp170100000.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c20a::])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id BFF8583F5B\n for <u-boot@lists.denx.de>; Tue, 31 Mar 2026 12:00:55 +0200 (CEST)", "from PR3P192CA0015.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:56::20)\n by MR0P264MB4652.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:62::8) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.15; Tue, 31 Mar\n 2026 10:00:52 +0000", "from PA2PEPF00019232.FRAP264.PROD.OUTLOOK.COM\n (2603:10a6:102:56:cafe::d4) by PR3P192CA0015.outlook.office365.com\n (2603:10a6:102:56::20) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.28 via Frontend Transport; Tue,\n 31 Mar 2026 10:00:37 +0000", "from proxy.softathome.com (149.6.166.170) by\n PA2PEPF00019232.mail.protection.outlook.com (10.167.242.38) with Microsoft\n SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.21\n via Frontend Transport; Tue, 31 Mar 2026 10:00:52 +0000", "from sah1lpt726.home (unknown [192.168.72.39])\n by proxy.softathome.com (Postfix) with ESMTPSA id AD6882092F;\n Tue, 31 Mar 2026 12:00:52 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=TvsC1mgxdvDSIcJALXnZB7A+5LVA2WZ9bK9AU6s1LLZ7Dwh7WVK7YzYsolUNm/ABWm1v6gfqpWI0V2Pl71dw7/H/9wZ8Fm6X9cf733J3FbM7RL5ltN+pkukkac430zxGrJwCF4wZw1Z8M2qDVu3ZeAcO40Gsw+dowG5LRJ+D8cZf97TuPbZybHg5kYFxROI1j3MLAu2fujNW2WWce4mBDPaA5PeoUoZd3QYtVubc7P5GFS8gaTipBBKrktI1HPZQrV2nkwI3y/XHsW1E+1y81FkgUATAo0ktgbGf0yGQ8wXZcq2kgX0LlnHKWQGUoTbdoAumZ4XHrGcSG60o37p5og==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=gPSLmx1Bisqa2SmJ7Yq5dRiy+BWoM7nx9IYnSOVWeLM=;\n b=I0q4gSzwt0/JVqWq90UhGzWDbdRB9hUn1HD52GWl2NqyqAWCeSXUbyiVIvvRKm8TQvUM6lMQzpYVJAyywQu5eQ3wQY7yfhs2YUzSqQci2Fe0wbFciHIaSaNeeA0Gbj3egDAwsaDUcENS+2pZWMckAhOKh6mmK+YnM31mA9gjLnSoGFZSttvTIFEDp5+8P1HM7UPBFKipSfSLP59otly4VT3SpsUtaXVRA50gB6IU/n9E/FfFfHzVkwANmoTl3cu4t3z5+ClEJV6oYl1zx7HmNV6pnz56dv7xEzhhGfOhKGhTFJIoLla4Hl5hH/DMbdmb3TSwR2u+iUbecIhlspOPnw==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 149.6.166.170) smtp.rcpttodomain=canonical.com smtp.mailfrom=softathome.com;\n dmarc=bestguesspass action=none header.from=softathome.com; dkim=none\n (message not signed); arc=none (0)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=gPSLmx1Bisqa2SmJ7Yq5dRiy+BWoM7nx9IYnSOVWeLM=;\n b=ojeVbFIEN2yNCJnz29xyZYUXuHN8iF1Polm5IazxRbhqrhaZz9xjgDVe9WQHXj0aFTCPGnW2xlgerwd4Oga2gKLPuyIm+WeR+zaRmwow6s8EIAUh1hSsQ06n1MtVskjm41d73pZEXqM/zcfQESf5MhzHVg5sy0KzSuVSRAMZeK1Rsbmj1PNo+5jXcrlYZlbVv4ob5af6Y3+9SkoMvyV/PyQSrghdvyrV6lYfx5FblS68F94/APlP3qkoeufXmYKdixdaifzz32CJfTv7luKIoNxRpQhyYjuCMDmzxPvBpG+JRbxyRlU1N/ZtRPhPGEpKa0JZx0FCKBGUQDtEEqnsnQ==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 149.6.166.170)\n smtp.mailfrom=softathome.com; dkim=none (message not signed)\n header.d=none;dmarc=bestguesspass action=none header.from=softathome.com;", "Received-SPF": "Pass (protection.outlook.com: domain of softathome.com\n designates 149.6.166.170 as permitted sender)\n receiver=protection.outlook.com; client-ip=149.6.166.170;\n helo=proxy.softathome.com; pr=C", "From": "Philippe Reynes <philippe.reynes@softathome.com>", "To": "marko.makela@iki.fi, jonny.green@keytechinc.com, raymondmaoca@gmail.com,\n trini@konsulko.com, simon.glass@canonical.com", "Cc": "u-boot@lists.denx.de,\n\tPhilippe Reynes <philippe.reynes@softathome.com>", "Subject": "[PATCH v3 04/15] drivers: crypto: add software ecdsa support", "Date": "Tue, 31 Mar 2026 12:00:36 +0200", "Message-ID": "<20260331100047.34618-5-philippe.reynes@softathome.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260331100047.34618-1-philippe.reynes@softathome.com>", "References": "<20260331100047.34618-1-philippe.reynes@softathome.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "PA2PEPF00019232:EE_|MR0P264MB4652:EE_", "Content-Type": "text/plain", "X-MS-Office365-Filtering-Correlation-Id": "4aea3a8f-0099-465f-5987-08de8f0c64ee", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|1800799024|82310400026|36860700016|376014|18002099003|22082099003|56012099003;", "X-Microsoft-Antispam-Message-Info": "\n CU+8ldVyNAA0C1xWVxB04VhIHwsj5/funm3FxND5e0oZL7TgtgZo64OqFXZqeZs7iG8hW9bTDktfxUnaQglR5GDUVUyjUJgCNmHR1kroS3CX4YsTZlT2VzUuOuHl0IfCGKqU3qQQgZiXErQs58H1RJqNQuQV9q17X5nllIAokfUD9vCnzWQaB6qXwk99/UfVd6L2TRuZB6oYqFTy2KoHK2k+mZHoIQAyt6iD0nhRGtiO/Denx5gJcNcDFAOfbP2bORP7vZdMmYuTQJdIwI7/Qop3INzVvaUqCTGtqp0nu73AFaNc9Qm36Gb311WfsEdDZTBBAb5odS06bVV6rNQTBh4tiAj3rp/omoTf8+igQUBCbzBbCTz3ojAwVFszJZA3hQu0HiibRQehCO7Ix+lYq9iYo8T/EBXu8Y5sREezZZ6XcOuT25Hcy4O7HaACICTbhOQDYkI2lqdta+nkcP1pLS+Op2ZX/GTtrQQH4CwSo9sFALrIKvwkIdfnouynsMEpfbi8Spb8Wwvede14YsqV8EI7fIYQNHIBv53uQbkV+YCgKuRq1nD0Q45i1CPXHcIQI7YsqxlCRjr8J70Dy9e/GhNpA1Jh6WYLn+Fq04Qu2N7BC6ccz+eJFKAbc3L4nUt0r7N8NBICN38RbXF67KpEkh4HAKRa503qPpNsuNejmudhnjVkJqdIOkMEnbAZZuyfDsONHmq2H1dzcjZBEuz/SdCA9EsL0lSuYYtV2aZ+iQU=", "X-Forefront-Antispam-Report": "CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent;\n CAT:NONE;\n SFS:(13230040)(1800799024)(82310400026)(36860700016)(376014)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n SGVRdIocNAmo3NuwTOADvY6F/Rtz1z+KMJWfWPrZTL94amGuKQnvpf1FqzPPh2tqtXu3YKqHTFOy2XPFVEeLyb319Sixa1MipbXSu1p4vRPByi2kyTdHpfVTOeQrXMunmKpvf2yD5ar9cYubXZPLTrNyUa2/kM4UJWOv1UG2VCM9zHlackjyXQpZyO/Q28HSxJd85NDn1kuzMbL3E84faHDRWEH8vSF9iL+O+Jb64PSqZILEaii4RmVezm64DKZs02jYW4gRubfliL6XO7x1LkKH+3fsS9aAHg/wGYKt1LmSaFDs6EouEB9D1hkUVgZNeA63HpnlgjwygLIY/2iiY0HOv15+p7tWWIiL88TNYyxB4+j5tm6Pd3dQIepI8pAiSvqg/FD7FrjoxaDEUy3xH1eM8W7YMffTfjDpY0QJ0yWtpohNjvP2vPJMl0fkyj3e", "X-OriginatorOrg": "softathome.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "31 Mar 2026 10:00:52.8421 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 4aea3a8f-0099-465f-5987-08de8f0c64ee", "X-MS-Exchange-CrossTenant-Id": "aa10e044-e405-4c10-8353-36b4d0cce511", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170];\n Helo=[proxy.softathome.com]", "X-MS-Exchange-CrossTenant-AuthSource": "PA2PEPF00019232.FRAP264.PROD.OUTLOOK.COM", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MR0P264MB4652", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Add an software ecdsa driver so it is\nnow possible to use ecdsa signature on\nboard without ecdsa hardware support.\n\nSigned-off-by: Philippe Reynes <philippe.reynes@softathome.com>\n---\nv2:\n- no change\nv3:\n- add depends on ECDSA_VERIFY to ECDSA_SW\n- change sw_ecdsa_verify to ecdsa_hash_verify\n\n drivers/crypto/Kconfig | 2 ++\n drivers/crypto/Makefile | 1 +\n drivers/crypto/ecdsa/Kconfig | 8 ++++++++\n drivers/crypto/ecdsa/Makefile | 6 ++++++\n drivers/crypto/ecdsa/ecdsa-sw.c | 33 +++++++++++++++++++++++++++++++++\n 5 files changed, 50 insertions(+)\n create mode 100644 drivers/crypto/ecdsa/Kconfig\n create mode 100644 drivers/crypto/ecdsa/Makefile\n create mode 100644 drivers/crypto/ecdsa/ecdsa-sw.c", "diff": "diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig\nindex 0d58e3910fe..cf49e5c0f7e 100644\n--- a/drivers/crypto/Kconfig\n+++ b/drivers/crypto/Kconfig\n@@ -12,4 +12,6 @@ source \"drivers/crypto/nuvoton/Kconfig\"\n \n source \"drivers/crypto/tegra/Kconfig\"\n \n+source \"drivers/crypto/ecdsa/Kconfig\"\n+\n endmenu\ndiff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile\nindex e4a4482b7f3..8170e4cae9c 100644\n--- a/drivers/crypto/Makefile\n+++ b/drivers/crypto/Makefile\n@@ -4,6 +4,7 @@\n #\thttp://www.samsung.com\n \n obj-$(CONFIG_EXYNOS_ACE_SHA)\t+= ace_sha.o\n+obj-$(CONFIG_ECDSA) += ecdsa/\n obj-y += aes/\n obj-y += rsa_mod_exp/\n obj-y += fsl/\ndiff --git a/drivers/crypto/ecdsa/Kconfig b/drivers/crypto/ecdsa/Kconfig\nnew file mode 100644\nindex 00000000000..50b65a904ce\n--- /dev/null\n+++ b/drivers/crypto/ecdsa/Kconfig\n@@ -0,0 +1,8 @@\n+config ECDSA_SW\n+\tbool \"Enable driver for ECDSA in software\"\n+\tdepends on ECDSA_MBEDTLS\n+\tdepends on ECDSA_VERIFY\n+\tdefault y if SANDBOX\n+\thelp\n+\t Enable driver for ECDSA operations in software. Currently\n+\t it supports multiple ECDSA algorithm.\n\\ No newline at end of file\ndiff --git a/drivers/crypto/ecdsa/Makefile b/drivers/crypto/ecdsa/Makefile\nnew file mode 100644\nindex 00000000000..8f9e5a767f8\n--- /dev/null\n+++ b/drivers/crypto/ecdsa/Makefile\n@@ -0,0 +1,6 @@\n+# SPDX-License-Identifier: GPL-2.0+\n+#\n+# Copyright (C) 2026 Philippe Reynes <philippe.reynes@softathome.com>\n+#\n+\n+obj-$(CONFIG_ECDSA_SW) += ecdsa-sw.o\ndiff --git a/drivers/crypto/ecdsa/ecdsa-sw.c b/drivers/crypto/ecdsa/ecdsa-sw.c\nnew file mode 100644\nindex 00000000000..89ce5a3b888\n--- /dev/null\n+++ b/drivers/crypto/ecdsa/ecdsa-sw.c\n@@ -0,0 +1,33 @@\n+// SPDX-License-Identifier: GPL-2.0+\n+/*\n+ * Copyright (C) 2026 Philippe Reynes <philippe.reynes@softathome.com>\n+ */\n+#include <dm/device.h>\n+#include <linux/types.h>\n+#include <u-boot/ecdsa.h>\n+#include <crypto/ecdsa-uclass.h>\n+#include <dm/platdata.h>\n+#include <crypto/internal/ecdsa.h>\n+\n+static int ops_sw_ecdsa_verify(__always_unused struct udevice *dev,\n+\t\t\t const struct ecdsa_public_key *pubkey,\n+\t\t\t const void *hash, size_t hash_len,\n+\t\t\t const void *signature, size_t sig_len)\n+{\n+\treturn ecdsa_hash_verify(pubkey, hash, hash_len, signature, sig_len);\n+}\n+\n+static const struct ecdsa_ops sw_ecdsa_ops = {\n+\t.verify = ops_sw_ecdsa_verify,\n+};\n+\n+U_BOOT_DRIVER(sw_ecdsa) = {\n+\t.name\t= \"sw_ecdsa\",\n+\t.id\t= UCLASS_ECDSA,\n+\t.ops\t= &sw_ecdsa_ops,\n+\t.flags\t= DM_FLAG_PRE_RELOC,\n+};\n+\n+U_BOOT_DRVINFO(sw_ecdsa) = {\n+\t.name = \"sw_ecdsa\",\n+};\n", "prefixes": [ "v3", "04/15" ] }