Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2225946/?format=api
{ "id": 2225946, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2225946/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260421210954.1170437-6-philippe.reynes@softathome.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260421210954.1170437-6-philippe.reynes@softathome.com>", "list_archive_url": null, "date": "2026-04-21T21:09:44", "name": "[v5,05/15] drivers: crypto: add software ecdsa support", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "660ad9527952742d1ae2a01e31f14800993b7739", "submitter": { "id": 74351, "url": "http://patchwork.ozlabs.org/api/1.2/people/74351/?format=api", "name": "Philippe Reynes", "email": "philippe.reynes@softathome.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260421210954.1170437-6-philippe.reynes@softathome.com/mbox/", "series": [ { "id": 500895, "url": "http://patchwork.ozlabs.org/api/1.2/series/500895/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500895", "date": "2026-04-21T21:09:51", "name": "add software ecdsa support", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/500895/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225946/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225946/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=qWfVRMsj;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=\"qWfVRMsj\";\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\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4g0Zkc6kT1z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 07:10:16 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3313084319;\n\tTue, 21 Apr 2026 23:10:07 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id B839284258; Tue, 21 Apr 2026 23:10:05 +0200 (CEST)", "from PR0P264CU014.outbound.protection.outlook.com\n (mail-francecentralazlp170120004.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c20a::4])\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 A8F7F805D7\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 23:10:00 +0200 (CEST)", "from MR1P264CA0144.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:51::8) by\n PATP264MB4835.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:429::5) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9818.33; Tue, 21 Apr 2026 21:09:57 +0000", "from MR1PEPF00000D5A.FRAP264.PROD.OUTLOOK.COM\n (2603:10a6:501:51:cafe::29) by MR1P264CA0144.outlook.office365.com\n (2603:10a6:501:51::8) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9791.48 via Frontend Transport; Tue,\n 21 Apr 2026 21:09:57 +0000", "from proxy.softathome.com (149.6.166.170) by\n MR1PEPF00000D5A.mail.protection.outlook.com (10.167.241.7) with Microsoft\n SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.18\n via Frontend Transport; Tue, 21 Apr 2026 21:09:57 +0000", "from sah1lpt726.softathome.com (unknown [192.168.72.32])\n by proxy.softathome.com (Postfix) with ESMTPSA id 3BC2B20E34;\n Tue, 21 Apr 2026 23:09:57 +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=cvByqrzoArcVu9F+KvgF4PSw+V1LjTfQFVVr2g/nOANCP7zYC1MDeVt3G9gF48iTUzPznfEJROqpwxYRHFIytwvXyoUXOSdQ03ponfJBdAzOGIbjCcelRuY/Hbnnu1vU2nKEqeFB69pthgswX7YHd++qI0UPKaoLER9vS8K/4z8Yg4W8XqKFS2R8mgkzPT41rxBIfTfF0tyKV8BSxuUykXMg5KRpQfuxafwYLF3imm1yzwZrY+49oGW2wC1wn0zYN5DbtlOQ05Uy/xUlWcjeUySpK71oCck2swMkRLKbpbKbiuRx015ziTuxs3rNqBeUtI7mxHVat0ZAzVOLWvK5dw==", "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=ShMy03AgrJx239Y/CW9VhF5nFhctjXF+FfjburR+Uao=;\n b=yFJAldU4ZsWxDltXliX42sTW+zt45wmcvHqUkqOKnN+00WaRQ68COi+xZyiuE2Sn3sw48+ti9f0FgjLNyr4GtYrwe67Ac3TyvS2uLOue7wghKF0efewdH4RPbkHthTMWeQVYN1pNLUt5/WDW2GV1VZLPTv/hTiJYLTC2HFoJKvZQRWdEd7tZXYjML4yd5vGkm3i2OAUO5wjHuL4gGB3mAp/bVHpn3xsruMeYOTcCg0XDVEI6o3I1r85k/UzI464hY4u4B0OfVgXS2gUEq52UZo4ABy4WgVgue3GvVP94+Lxd0c5mtYFVmm3dExw6vn+DC3glPGC+55PxM16BjzRUdw==", "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=ShMy03AgrJx239Y/CW9VhF5nFhctjXF+FfjburR+Uao=;\n b=qWfVRMsjEk7OqoePdQM+kfNhZk8CmgDpmPPj4lhjihoT3UZ4132oeL4/BgHp4u0FXmj9AiapfMtv0w7rZ2PeuK9TiTQHv40RlJDySIeNDhFsABKhaO9HIKj0wKYL4vs64VaOoPCtP0djlb/rXzV6+/bFHZMIrIAqf6Jp9er8COvHoo5RsjQLK+uhFkuFi9hRwxhLvk4IDUq8tsgBUkRYj4HAiGc0hV7jmGB2xrD5CBE6CMVa5H/jfLYxeCpWnsKxHV5M5wpwnjHtfutriGnaS6oVkiAIpDStuCixF1S/RRqe+/8jzewt6LN7WJhlANgVUYLpHgWN8QNvhe3ixup5mA==", "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 v5 05/15] drivers: crypto: add software ecdsa support", "Date": "Tue, 21 Apr 2026 23:09:44 +0200", "Message-ID": "<20260421210954.1170437-6-philippe.reynes@softathome.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260421210954.1170437-1-philippe.reynes@softathome.com>", "References": "<20260421210954.1170437-1-philippe.reynes@softathome.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "MR1PEPF00000D5A:EE_|PATP264MB4835:EE_", "Content-Type": "text/plain", "X-MS-Office365-Filtering-Correlation-Id": "fd7a8e58-829a-4580-4b73-08de9fea57cd", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|1800799024|376014|36860700016|82310400026|30052699003|13003099007|18002099003|22082099003|56012099003;", "X-Microsoft-Antispam-Message-Info": "\n h7OIVvT88qUDanMsZsuE02EPKozy1cjc6dX+U8KTwDtFkvz0j1KuvPVb+0XznGQtmJGLqWR+M/SCvQxO7hWoKPpFmO6pb5Q1zwfv+gMm743cCbm0KxEB2cbILF7S9g/MNMUYpsZCLFeI0zzTJaVipZ2nsDP3IZyWc8PwQCnlPOQOpRGnkuHAdRUHNZNic3k8+Q2HKB4KU5BbgnqrvbA3/jxGxn6j25BcXTIT/tPUeNaMZqROnrPkfEjCqJQU+KGinSm0Lm+KEKW845HMmby9UZLXf7r3zaMJ7mUPt0xq/yf4Qjh9xJGc8fs1niLeq4H0UZZRHxC2aFw4NZ3WGFxeTpYKhzDjEqPOrAOFTd9AiBsWAFYJH4bnBPvbqnNXI0QuHkk9ZbnRs/SgKOI3hpydDoLA7ZjeVSPatB7K4GVfTyfHYDUDtabP62W7/aR6k9W2pI884VTSChOO/gBuLS/NEZm26BwurV2NLxBEONhslNd0D7Se5BuSbN+MxnGlo3AfFTTAwoRZZGbW6QKlpKngWJ57ZA5plOERR2NGYX+q3CPIoyB7rREeuMdtl4vy/f87xNtFTldMtOp0Lc2lwVLF5loU9YU4wau61JRxz/mVg3tNB7V+723OlXH9Yv40l+2ZuMJ0mxT87dpHEu5UoFWSCPB1qeZU/oLyNfyidBxFGB2pRPW2W+58gPRFrGeacCO9RQOHCFIOOtmcFj2qmamSTqqNEKPWN4T/lMQuB6ofEBM=", "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)(376014)(36860700016)(82310400026)(30052699003)(13003099007)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n 1niWApkBsI44kzsHYuBICt34yuMTRXcsT9+rvLW28m5myLNpkDtb+Pv70l4MVhG9XOEV84m9fAskjIrN54fPSY2+FlmO4f9ypSoOmJ2eW5kDx+qA1oS7lRYROQ1jNcoHnv0JtgJUoaUT5Yzb1USkw1zie+eQ4bLGnWtfmBZJovPg4BO1N++SQP0gSQwNVgcF5TWWbdi7u0Ua0FjZNdVEcaFM+MqrYuf8XlG8g+hSGUqeNxW5L/M0kUpzy4Jx7BlywA4AwLLV9WeRcol2jW2l6hcZ2uzwv1+iNEo0XWQmLL3X8i3J6mmpjiDLEr2pE43T0HGwaw1HZH5uCDgvMh208VlcQSN583L6lxnjMqVzOpOoI6olIc0y4hg89w71GXNLKBVVZ5IXA0X5oiN4oAUH0Mr8mlpJbjamWNtMpPdgWM9c1qBZbIBmJI5u2CZhFZyw", "X-OriginatorOrg": "softathome.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Apr 2026 21:09:57.6746 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n fd7a8e58-829a-4580-4b73-08de9fea57cd", "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": "MR1PEPF00000D5A.FRAP264.PROD.OUTLOOK.COM", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PATP264MB4835", "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 a software ecdsa driver so it is\nnow possible to use ecdsa signature on\nboard without ecdsa hardware support.\n\nReviewed-by: Raymond Mao <raymondmaoca@gmail.com>\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- v4\n- use ECDSA_MBEDTLS to build the driver\n- clean include (change order)\nv5:\n- use $(PHASE_) in the Makefile for the driver\n\n drivers/crypto/Makefile | 1 +\n drivers/crypto/ecdsa/Makefile | 6 ++++++\n drivers/crypto/ecdsa/ecdsa-sw.c | 33 +++++++++++++++++++++++++++++++++\n 3 files changed, 40 insertions(+)\n create mode 100644 drivers/crypto/ecdsa/Makefile\n create mode 100644 drivers/crypto/ecdsa/ecdsa-sw.c", "diff": "diff --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/Makefile b/drivers/crypto/ecdsa/Makefile\nnew file mode 100644\nindex 00000000000..1fd873980be\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_$(PHASE_)ECDSA_MBEDTLS) += 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..21dffeddf59\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 <crypto/ecdsa-uclass.h>\n+#include <crypto/internal/ecdsa.h>\n+#include <dm.h>\n+#include <linux/types.h>\n+#include <u-boot/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+\n", "prefixes": [ "v5", "05/15" ] }