From patchwork Tue May 2 04:47:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 1775720 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=tkos.co.il header.i=@tkos.co.il header.a=rsa-sha256 header.s=default header.b=rT2/i07m; 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q9SHs2nrQz20fd for ; Tue, 2 May 2023 14:47:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75DCB8637F; Tue, 2 May 2023 06:47:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=tkos.co.il 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; secure) header.d=tkos.co.il header.i=@tkos.co.il header.b="rT2/i07m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 923C1863AA; Tue, 2 May 2023 06:47:46 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail.tkos.co.il (wiki.tkos.co.il [84.110.109.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4673A8637A for ; Tue, 2 May 2023 06:47:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=tkos.co.il Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=baruch@tkos.co.il Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.tkos.co.il (Postfix) with ESMTPS id 84FB6441079; Tue, 2 May 2023 07:42:03 +0300 (IDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1683002523; bh=WUn0kmbBIvruI1g6MRH+hnEY2xsP/badeiIXJMYoTxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rT2/i07mdtJHYxZWjFoPesPGvA9jKNfFp6rI5vQlQugVITNzJ1gKgNu+N7MRAoGr0 flC/u06xmj0DEDBoRrXyH/9nLILcj0rBEvO+M+z1kLQ9XnWUSHAHenZFt0NuXPRIOP 1SjsCKpntoBr2VJivRZOD3egfIuXk2TgjExWgCOIvHhvXeTUEvEQF0tOn60BDjNeCa qUhazgA1/jBzaW1Gan+gVEuFV8chJNTq5/RUY/TliaXYpoCUNPrEvpYR+acW43K0EM Qt6jRBngr/3Q6e9+rBRv4OJqeFP9MhfVShL15u7PTpjqERSdJ/T8dnYF7TFrftx4Gr EF//PeldFb1hg== From: Baruch Siach To: Simon Glass Cc: u-boot@lists.denx.de, Baruch Siach Subject: [PATCH 2/4] doc: signature: update algorithm addition description Date: Tue, 2 May 2023 07:47:29 +0300 Message-Id: <3da41960dc08691d2674e286090876d623843317.1683002851.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.39.2 In-Reply-To: <58421075b02401535de82d4b91616c270b020982.1683002851.git.baruch@tkos.co.il> References: <58421075b02401535de82d4b91616c270b020982.1683002851.git.baruch@tkos.co.il> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean U-Boot now uses the U_BOOT_CRYPTO_ALGO() macro. Signed-off-by: Baruch Siach Reviewed-by: Simon Glass Acked-by: Heinrich Schuchardt --- doc/uImage.FIT/signature.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index bc123f512f7b..b6707417ff63 100644 --- a/doc/uImage.FIT/signature.txt +++ b/doc/uImage.FIT/signature.txt @@ -56,10 +56,10 @@ of data from the FDT and exponentiation mod n. Code size impact is a little under 5KB on Tegra Seaboard, for example. It is relatively straightforward to add new algorithms if required. If -another RSA variant is needed, then it can be added to the table in -image-sig.c. If another algorithm is needed (such as DSA) then it can be -placed alongside rsa.c, and its functions added to the table in image-sig.c -also. +another RSA variant is needed, then it can be added with the +U_BOOT_CRYPTO_ALGO() macro. If another algorithm is needed (such as DSA) then +it can be placed in a directory alongside lib/rsa/, and its functions added +using U_BOOT_CRYPTO_ALGO(). Creating an RSA key pair and certificate