From patchwork Fri Jan 8 19:17:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alex G." X-Patchwork-Id: 1423946 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=r/yNYtz0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DCCZ72Tpbz9sWS for ; Sat, 9 Jan 2021 06:18:39 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 81E5E82999; Fri, 8 Jan 2021 20:17:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="r/yNYtz0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BB8682989; Fri, 8 Jan 2021 20:17:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 673A682977 for ; Fri, 8 Jan 2021 20:17:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oi1-x232.google.com with SMTP id l200so12496345oig.9 for ; Fri, 08 Jan 2021 11:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0cIrclvqfMGJ60GhoWWA+GJSfTZG4dwuJGELTpj4fwY=; b=r/yNYtz0lUVxRI1oFDdIbtbGvvh/MJ6aKbsFHkCV1m8obtW2haryXi6SHa8+ympjAg mAELGjfAn2M79K5wmnFN/pXw8QQQrKyb++XN/mq2dXimZOQssN9fLDK1FhRlYYxckY3W RV9vgxP55OnveERHVHFnyWDp4R/fOq4fIy6rtn944s8rfP3wXsnSrlSUv5qkPnQ0wnvf zJ3mZoXByp38jDpkb6YoGnZBblDNijHq4Px8KQaJeP5056teSwNm47uKr3xWL+QHl3g6 0Dz0D5O36Ne3pLy1UJEw9w6xE3geiLuEox0n0rN5vGxG6DOEy1mjDwbRYbngAnnRZ2f8 fIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0cIrclvqfMGJ60GhoWWA+GJSfTZG4dwuJGELTpj4fwY=; b=mtlelq3CZl+pPVZQdVaBhDf8t+VLVzfYnGeIxB6txzALiN47QafcdwJv2B5QBej421 Q8BPCUUdVjAPvBz+uF9QKe23ACG26Y6gZUy1VqHhaW/jQq33LL1Nqxyv0q+Ryf9ONaPk rALpEGrJD+/ZvTzglbNSUMBL3GCoknzuuDccJvD576x1Mn9kyTusi0LO1CxIOrKX7Q1o W+TDEqC7wg9B958z5K7JGgOD6WtXJiG/jjX2cEWQIzmaKWfCPtkOG+8ijshfW07JhgQi kPHjFWsTOtcdt91PzOwMHQGDAAgKWWJRoQj78JwuxB2VbO8M2zhwMVhujgn/yAL+8TPP NQYw== X-Gm-Message-State: AOAM5331R8gd6vb8rrRNLjNjbEiSxRsCaeRbfleQGYvqlXT7rk4xxrpJ IK04QQyVchfMx9nRk4DDXLSPZftDR4cevr61 X-Google-Smtp-Source: ABdhPJxZhR48JwzDVBPHEoL8IRRROaEjKHOPl02T4BJAZzWrRKFN9HW5AVFPqcKWD6+IN5/7iKUMhw== X-Received: by 2002:aca:bac3:: with SMTP id k186mr3161713oif.93.1610133467092; Fri, 08 Jan 2021 11:17:47 -0800 (PST) Received: from nuclearis2-1.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id g200sm2131617oib.19.2021.01.08.11.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 11:17:46 -0800 (PST) From: Alexandru Gagniuc To: u-boot@lists.denx.de, sjg@chromium.org Cc: Alexandru Gagniuc , trini@konsulko.com, marex@denx.de Subject: [PATCH v4 4/6] doc: signature.txt: Document devicetree format for ECDSA keys Date: Fri, 8 Jan 2021 13:17:35 -0600 Message-Id: <20210108191737.615022-5-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210108191737.615022-1-mr.nuke.me@gmail.com> References: <20210108191737.615022-1-mr.nuke.me@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Alexandru Gagniuc --- doc/uImage.FIT/signature.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index a3455889ed..0139295d33 100644 --- a/doc/uImage.FIT/signature.txt +++ b/doc/uImage.FIT/signature.txt @@ -142,7 +142,7 @@ public key in U-Boot's control FDT (using CONFIG_OF_CONTROL). Public keys should be stored as sub-nodes in a /signature node. Required properties are: -- algo: Algorithm name (e.g. "sha1,rsa2048") +- algo: Algorithm name (e.g. "sha1,rsa2048" or "sha256,ecdsa256") Optional properties are: @@ -167,6 +167,11 @@ For RSA the following are mandatory: - rsa,r-squared: (2^num-bits)^2 as a big-endian multi-word integer - rsa,n0-inverse: -1 / modulus[0] mod 2^32 +For ECDSA the following are mandatory: +- ecdsa,curve: Name of ECDSA curve (e.g. "prime256v1") +- ecdsa,x-point: Public key X coordinate as a big-endian multi-word integer +- ecdsa,y-point: Public key Y coordinate as a big-endian multi-word integer + These parameters can be added to a binary device tree using parameter -K of the mkimage command::