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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,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 975BAC04FF3 for ; Mon, 24 May 2021 20:22:58 +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 1D8D4613CC for ; Mon, 24 May 2021 20:22:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D8D4613CC 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 65D5282F33; Mon, 24 May 2021 22:20:42 +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="UVh/BTI6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 32F4082EDF; Mon, 24 May 2021 22:20:00 +0200 (CEST) Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (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 6ED0482EE1 for ; Mon, 24 May 2021 22:19:56 +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-ot1-x335.google.com with SMTP id t10-20020a05683022eab0290304ed8bc759so26406875otc.12 for ; Mon, 24 May 2021 13:19:56 -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=RYWMvhp+od4xjGt61kcSSdQk+NPBihOkG5v8FaWFSX0=; b=UVh/BTI6RhKHFRp48W0Kc8lpsSNwFw0jM8QgSiqOBdwFaEKxNeCk+nksoiEDX/vWfT V0Go69GBc3K32D41Zpr2cuzY5vhzbjXECsLu0V+QIFlsEIX75n/9LKiV4MUHEVBAShG6 qp8Hv46hOH5b8aSMD487929zZ+eTGtFGcN4V2x9OpsdZTqfANRHJulRftpEyAUR4cPll A5JQn9BI8j9sKfV8Sqk1mBIq2Bzies/SWalcimnOmHdsr3TJXgbtDJaPh7Zgth4HWvzI ql01wK6tik3JjTanFHiEQkJzRK0fpAQY9owMxwr7IqLXhDS+sReo0M32QzY30+IerudP IA5w== 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=RYWMvhp+od4xjGt61kcSSdQk+NPBihOkG5v8FaWFSX0=; b=ZqmKRE17+5F6FItjGLwAsyT1xLQlnDqat3nnunwRtH31QUcjrSmjZRHOQb6quk5sEY auixG/MPJGe8GKNWGQxinhIzZmpua2rHH1FUy2Y+CfqDeyvE8btbSnko6AROklxNnHqm 8aCzPuPMnapGU+pxLtbI55o1UiwAX77IefPE1uS+AclAtz3YT7Sfq29nQWeZvn1pvJjD J7YA/iAultKptrbb23vt3mdr/CVL4z6hqy3Y9HuWuJswtuOuTHCHDAdPJh7P1q8Wvszf QFSVP7sYJ1znajNd6/LSxhzP76FTn/fUrnxC3iXoqkShplpCymv58SaH94KEOD4zUh97 2XlA== X-Gm-Message-State: AOAM532rP0iH8ptGw24FYoDLIYeKEA1Y2CcTiXR3eeiW1oe+W+G6rkqU fRsdbi1up1RNPOiO0X0DbZjKG9DkgSjXMg== X-Google-Smtp-Source: ABdhPJzYIQC+ZODUj8jEFJhVzFdxJ2k0BeCSt8QnYrQN109uWB55SwW7qqg3PQmY4gbRD9OPT8oUWQ== X-Received: by 2002:a9d:5552:: with SMTP id h18mr21003836oti.104.1621887594801; Mon, 24 May 2021 13:19:54 -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 w13sm2816338otp.10.2021.05.24.13.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 13:19:54 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, sjg@chromium.org Cc: Alexandru Gagniuc , trini@konsulko.com, michal.simek@xilinx.com, rasmus.villemoes@prevas.dk Subject: [PATCH v2 17/18] image: Eliminate IMAGE_ENABLE_VERIFY_ECDSA macro Date: Mon, 24 May 2021 15:19:38 -0500 Message-Id: <20210524201939.1491676-18-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524201939.1491676-1-mr.nuke.me@gmail.com> References: <20210524201939.1491676-1-mr.nuke.me@gmail.com> 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.102.4 at phobos.denx.de X-Virus-Status: Clean This macro is no longer needed for code flow or #ifdefs. Remove it. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- include/image.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/image.h b/include/image.h index ee930b0265..2f48a6eecf 100644 --- a/include/image.h +++ b/include/image.h @@ -1196,17 +1196,14 @@ int calculate_hash(const void *data, int data_len, const char *algo, #if defined(USE_HOSTCC) # if defined(CONFIG_FIT_SIGNATURE) # define IMAGE_ENABLE_SIGN 1 -# define IMAGE_ENABLE_VERIFY_ECDSA 1 # define FIT_IMAGE_ENABLE_VERIFY 1 # include # else # define IMAGE_ENABLE_SIGN 0 -# define IMAGE_ENABLE_VERIFY_ECDSA 0 # define FIT_IMAGE_ENABLE_VERIFY 0 # endif #else # define IMAGE_ENABLE_SIGN 0 -# define IMAGE_ENABLE_VERIFY_ECDSA 0 # define FIT_IMAGE_ENABLE_VERIFY CONFIG_IS_ENABLED(FIT_SIGNATURE) #endif -- 2.31.1