get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2235243/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2235243,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2235243/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/4da58a8d6167bec497935d67000d07b84de19146.1778277334.git.aidan@wolfssl.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": "<4da58a8d6167bec497935d67000d07b84de19146.1778277334.git.aidan@wolfssl.com>",
    "list_archive_url": null,
    "date": "2026-05-09T00:04:09",
    "name": "[v3,02/12] include/hash: add SHA384 hash wrapper declaration for wolfTPM",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7e6c75bba9a3ff7f97116e9be72abff45bf798b6",
    "submitter": {
        "id": 92785,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92785/?format=api",
        "name": "Aidan Garske",
        "email": "aidan@wolfssl.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/4da58a8d6167bec497935d67000d07b84de19146.1778277334.git.aidan@wolfssl.com/mbox/",
    "series": [
        {
            "id": 503464,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503464/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=503464",
            "date": "2026-05-09T00:04:07",
            "name": "tpm: Add wolfTPM library support for TPM 2.0",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/503464/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2235243/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2235243/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=wolfssl-com.20251104.gappssmtp.com\n header.i=@wolfssl-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=HtVlSYbh;\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=fail (p=none dis=none) header.from=wolfssl.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=wolfssl-com.20251104.gappssmtp.com\n header.i=@wolfssl-com.20251104.gappssmtp.com header.b=\"HtVlSYbh\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=wolfssl.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=aidan@wolfssl.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gC6bT3qcMz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 09 May 2026 10:40:37 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7697084E0F;\n\tSat,  9 May 2026 02:40:14 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 18E6A84E10; Sat,  9 May 2026 02:04:41 +0200 (CEST)",
            "from mail-dl1-x122b.google.com (mail-dl1-x122b.google.com\n [IPv6:2607:f8b0:4864:20::122b])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 00F8984E0F\n for <u-boot@lists.denx.de>; Sat,  9 May 2026 02:04:39 +0200 (CEST)",
            "by mail-dl1-x122b.google.com with SMTP id\n a92af1059eb24-12dfee30612so2765172c88.0\n for <u-boot@lists.denx.de>; Fri, 08 May 2026 17:04:38 -0700 (PDT)",
            "from localhost.localdomain ([207.231.76.218])\n by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-132787673ffsm5505030c88.15.2026.05.08.17.04.36\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 08 May 2026 17:04:36 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "*",
        "X-Spam-Status": "No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_SBL_CSS,SPF_HELO_NONE,\n SPF_PASS autolearn=no autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=wolfssl-com.20251104.gappssmtp.com; s=20251104; t=1778285077; x=1778889877;\n darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=7oYLp3f1IsPX2hpfA/74waJEp3AA/OTaPMkuXAV8i2k=;\n b=HtVlSYbhgbm7SK3/BNax0MJ5j9DWTOMQuBQpV52Y482RwTMuIQwnGcfX1hmcDidHe8\n HZ8NSuw1WEGb68o+NPmUb6GCfcA85cWjHmd/u/jOivvjz6Kye2bH8cuPrCjaMv+vihgR\n fZjwaSyFX3pWJnojPL0ub6aF+LbzYYtyCIyfLzVT/7X8N2C1g+HKGc95vwRhyoFbPnQH\n FxczxFvoggVObnx53vpMAkz5rL9W4erxyD/Yvgfd+J5qRhbl93Nu4AFy5BfTr8RWObN/\n q2sdaiYUSft5t+Nhi7HRHxF85GSDEiRvAcRNniVRAeLixMxFixLNjfwTwBzH5m7vnuBF\n 1+wQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778285077; x=1778889877;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=7oYLp3f1IsPX2hpfA/74waJEp3AA/OTaPMkuXAV8i2k=;\n b=ZYVdDrBZrAn1sm0sIGkv5vTt34K1P2fSY7PwQyUGM3pO8VMCXCSYtX9U34Sz1HkO6w\n KqE9SaKQxk65SzcVRujZU9+Hv9mzLKX8c3+UE5Ex+NCGrDXsyuAQ4Esb+hF1NKiKboK+\n vS+qdciD8kmcGbUkX+ZsRDzV3vNkSTsm8WkXDi6YNXgDGIWdFxISficsEK+AVtjKKKAC\n gV9w/zwszs8murhQsgFm9tBJP0pUOn1NEyKW/+11tCsyj9L2G3+u1MoYOi1HqHwhpobK\n QGzBhlpIpF7XQRyGzyg29J7Jg6i4VtrPKPqxvr8aFgkbgHCh4kUE923w/wmkltSmsqz9\n mPfQ==",
        "X-Gm-Message-State": "AOJu0YxudiI6hmJrd4L7nhsnqJkIAPWrlvQDiaRBopG/+MQORW03AcbR\n aq88sSZZmDkR600nxy3u7ucOpD0FoYcA3z3GjeNCk3qVPNTfJ/DBr6kQbXmrI/fG9rgPEhpGQEq\n Yv1Y/",
        "X-Gm-Gg": "AeBDievkg/QsocJaCglDumcf9EAQ+D6MMtrqZMzSBeev4YXr7uGdufhvEHXDKRAlO7h\n iLONx1w6/ZTOO26y/+DrPc9byh0yT8w1M/xglPLZ5VyDTqoO5BckOo0pp0dQxCB5HrmH/EcfvrV\n YzbgQvHLBUjtX7ON9ETiuVNV2zMHMOR05elpG535pGbOoaclRNDtrPuD0mJ8tcscs5kdk8ttyhn\n ioRU/Wf45Vely6aKuOu6kSCnOUPzw3ClNOmzamYTiHLuP84Wvi/fqg6V2ne1bdW2AcN9bmez6eN\n SvSlduv8uUSlelTZBNVCJJ8cqvWJ0oVqCscAIznGmhVVsEfEbl9xsVnZCYfCO/jJKNm5YA7p+tW\n pMHo3ntUIwZYJBjTif9XP3kP1sLBC7faB/YXvj1CcK84pQ+WYToMpqq+dzzEVgFQ8+PFXzY4eSQ\n 6wPagMJMg4BXE518CVwXVFGMTYaQHcrwKa/q+r+D1WMK7UJhcQ/JON+4TkbvhNaaUXDMKl/cbAk\n 8bRncvlnmBOGUdjI8vYVSys7UWXNExoHyIr0ZUyxBs=",
        "X-Received": "by 2002:a05:7022:43:b0:12d:ce34:3f92 with SMTP id\n a92af1059eb24-13271c9c8c3mr2961062c88.31.1778285077112;\n Fri, 08 May 2026 17:04:37 -0700 (PDT)",
        "From": "Aidan Garske <aidan@wolfssl.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "David Garske <david@wolfssl.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>",
        "Subject": "[PATCH v3 02/12] include/hash: add SHA384 hash wrapper declaration\n for wolfTPM",
        "Date": "Fri,  8 May 2026 17:04:09 -0700",
        "Message-ID": "\n <4da58a8d6167bec497935d67000d07b84de19146.1778277334.git.aidan@wolfssl.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<cover.1778277334.git.aidan@wolfssl.com>",
        "References": "<cover.1778277334.git.aidan@wolfssl.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Sat, 09 May 2026 02:40:11 +0200",
        "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": "From: Aidan <aidan@wolfssl.com>\n\nAdd #include <linux/types.h> to include/hash.h so that basic types\n(u8, u32, etc.) are available to all includers.\n\nAdd a wc_Sha384Hash() wrapper declaration in include/hash.h, gated\nby WOLFTPM2_NO_WOLFCRYPT. When wolfTPM is built without wolfCrypt,\nthis wrapper provides SHA-384 hashing via U-Boot's hash subsystem,\nwhich is needed for Infineon TPM firmware update manifest validation.\n\nSigned-off-by: Aidan Garske <aidan@wolfssl.com>\n---\n include/hash.h | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)",
    "diff": "diff --git a/include/hash.h b/include/hash.h\nindex 8b3f79ec473..26043c43a9c 100644\n--- a/include/hash.h\n+++ b/include/hash.h\n@@ -6,6 +6,8 @@\n #ifndef _HASH_H\n #define _HASH_H\n \n+#include <linux/types.h>\n+\n #ifdef USE_HOSTCC\n #include <linux/kconfig.h>\n #endif\n@@ -163,4 +165,20 @@ int hash_progressive_lookup_algo(const char *algo_name,\n  */\n int hash_parse_string(const char *algo_name, const char *str, uint8_t *result);\n \n+#ifdef WOLFTPM2_NO_WOLFCRYPT\n+/**\n+ * wc_Sha384Hash() - Calculate SHA384 hash\n+ * @data:\tData to hash\n+ * @len:\tLength of data\n+ * @hash:\tOutput buffer for hash\n+ *\n+ * This is a wrapper function to provide wolfCrypt-compatible SHA384 hashing\n+ * when wolfCrypt is not available.\n+ *\n+ * Return: 0 on success, -1 on error\n+ */\n+int wc_Sha384Hash(const unsigned char *data, unsigned int len,\n+\t\t  unsigned char *hash);\n+#endif /* WOLFTPM2_NO_WOLFCRYPT */\n+\n #endif\n",
    "prefixes": [
        "v3",
        "02/12"
    ]
}