Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A10DCC12002 for ; Wed, 14 Jul 2021 22:06:03 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0882613C2 for ; Wed, 14 Jul 2021 22:06:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0882613C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E3B4812A6; Thu, 15 Jul 2021 00:05:59 +0200 (CEST) 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="ZtuYtddF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B2EE6812A6; Thu, 15 Jul 2021 00:05:55 +0200 (CEST) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (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 CE2DD812A6 for ; Thu, 15 Jul 2021 00:05:51 +0200 (CEST) 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-x230.google.com with SMTP id w127so4010860oig.12 for ; Wed, 14 Jul 2021 15:05:51 -0700 (PDT) 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=Eke84VVoEc0Ul8U+K74kACwWVNG8QxU4u9SXk9fjTmo=; b=ZtuYtddF4hcAlwnALKXCqlP307OjqssA7w4BK5XIguHug7GgBh56bBecfx8fqJwBLh f/MJ46c6yuGNex0eazhCQg+DUY21gAek7X9McWwq2ijyvjOQGhlXzpG/1El7dtiR97D1 T5Vr9myZvmHAekktj5aG2y5XNDPnlWSHBrnwZHYxZ5TY22FiNLjS44SKgdYEdl3rCrn+ G+R1gmigAHDwmNFUIBa/QHX7MlZf+Lv0P4sPErHFb79EFEvve0dQx/xokG5B6bSTHbww TMeIWrI0K/Ogg/i6HhIrHcOX2W6zG8WPgMFMDvXKRrZMCDsBS/QSj8a2U7KXzxBFKmAv gBIQ== 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=Eke84VVoEc0Ul8U+K74kACwWVNG8QxU4u9SXk9fjTmo=; b=HlbAgJFVK0yyBWOKS7ruDw7DDLud3APXP36zFJBkU5rU/WoiYQQnCXXY7keHy65ABH WXZnrw4wEr9hOdyb/XqZGU6VU6FyVTciFrQAaiRYLjFtftiDQOBrnsK5kpVseZ7UUTpi 7PB+hC6DorE5ydgVmaDP2k8aeUz58k/NU6PlakveFA39yn5Wi7TseHBs+foDKE/nUvgb 3AUt4MceSttHSA0Byfhh32fiP5aFOc1M8vNd4MnH/vUOA0YeDKC/0JT/y6mgBPtgO5cP m65/WqW9lJsjWBflcMEhU/pgM9uj95NkMnVta3AxU8PhChsUT1WAu/Mu9yZL4H30uA/t CO1Q== X-Gm-Message-State: AOAM530RJ5tET/vpDBr3oUBKIdKEIPMjiBOS/+ZnXmEMai9x58xbzu+y Nh+Dx2US7kQp8raT2pPyy03fm+F3CzM= X-Google-Smtp-Source: ABdhPJw894dpyqM4IQ2m8W45B14G9iLtld7wq0WpM1w60lh9OqT4zK7k0qOUsH0aUnAo2y7ZvzkXzg== X-Received: by 2002:aca:ebc3:: with SMTP id j186mr4475892oih.153.1626300349963; Wed, 14 Jul 2021 15:05:49 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id w64sm687278otb.45.2021.07.14.15.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:05:49 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, trini@konsulko.com Cc: Alexandru Gagniuc Subject: [PATCH v3 00/19] tools: Use a single config for Host OpenSSL (plus dependent patches) Date: Wed, 14 Jul 2021 17:05:28 -0500 Message-Id: <20210714220547.170371-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210714211138.GA25256@bill-the-cat> References: <20210714211138.GA25256@bill-the-cat> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean This series combines [PATCH v2] tools: Use a single target-independent config to enable OpenSSL and its dependencies. Changes since v2: * Replace FIT_OBJS-$(CONFIG_...) with FIT_OBJS-y to resolve rpi buld issue Alexandru Gagniuc (11): common: Move host-only logic in image-sig.c to separate file common: image-sig.c: Remove host-specific logic and #ifdefs image: Add support for placing crypto_algo in linker lists image: rsa: Move verification algorithm to a linker list image: image-sig.c: Remove crypto_algos array lib: ecdsa: Remove #ifdefs from ecdsa.h lib: rsa: Remove #ifdefs from rsa.h image: Eliminate IMAGE_ENABLE_VERIFY macro image: Eliminate IMAGE_ENABLE_VERIFY_ECDSA macro image: Add support for relocating crypto_algos in linker lists tools: Use a single target-independent config to enable OpenSSL Simon Glass (8): image: Shorten FIT_ENABLE_SHAxxx_SUPPORT image: Rename SPL_SHAxxx_SUPPORT to SPL_FIT_SHAxxx image: Rename CONFIG_FIT_ENABLE_RSASSA_PSS_SUPPORT Kconfig: Rename SPL_CRC32_SUPPORT to SPL_CRC32 Kconfig: Rename SPL_MD5_SUPPORT to SPL_MD5 image: Drop IMAGE_ENABLE_SHA1 image: Drop IMAGE_ENABLE_SHAxxx image: Drop IMAGE_ENABLE_BEST_MATCH common/Kconfig.boot | 8 +- common/image-fit.c | 10 +- common/image-sig.c | 76 +++---------- common/spl/Kconfig | 14 +-- configs/axm_defconfig | 2 +- configs/bcm963158_ram_defconfig | 2 +- configs/chromebit_mickey_defconfig | 2 +- configs/chromebook_jerry_defconfig | 2 +- configs/chromebook_minnie_defconfig | 2 +- configs/chromebook_speedy_defconfig | 2 +- configs/evb-px30_defconfig | 2 +- configs/firefly-px30_defconfig | 2 +- configs/imxrt1020-evk_defconfig | 2 +- configs/imxrt1050-evk_defconfig | 2 +- configs/mt8516_pumpkin_defconfig | 2 +- configs/odroid-go2_defconfig | 2 +- configs/px30-core-ctouch2-px30_defconfig | 2 +- configs/px30-core-edimm2.2-px30_defconfig | 2 +- configs/sandbox_defconfig | 2 +- configs/socfpga_agilex_atf_defconfig | 2 +- configs/socfpga_agilex_vab_defconfig | 2 +- configs/socfpga_stratix10_atf_defconfig | 2 +- configs/taurus_defconfig | 2 +- include/image.h | 59 ++-------- include/u-boot/ecdsa.h | 25 ---- include/u-boot/rsa.h | 51 +-------- lib/rsa/rsa-sign.c | 4 +- lib/rsa/rsa-verify.c | 18 ++- tools/Kconfig | 11 ++ tools/Makefile | 48 +++++--- tools/image-sig-host.c | 133 ++++++++++++++++++++++ 31 files changed, 259 insertions(+), 236 deletions(-) create mode 100644 tools/image-sig-host.c -- 2.31.1