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.7 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,URIBL_BLOCKED,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 6A357C12002 for ; Wed, 14 Jul 2021 22:09:15 +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 DCAD3613BF for ; Wed, 14 Jul 2021 22:09:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCAD3613BF 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 1666182F3B; Thu, 15 Jul 2021 00:08:15 +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="JOFjrPcr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 454CC805DF; Thu, 15 Jul 2021 00:06:24 +0200 (CEST) Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (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 7CB41829C4 for ; Thu, 15 Jul 2021 00:06:10 +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-x329.google.com with SMTP id h24-20020a9d64180000b029036edcf8f9a6so4128070otl.3 for ; Wed, 14 Jul 2021 15:06:10 -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=BdbBd7cdgG9urWAId1PBgE453cq0qQxQcZv6InYOks0=; b=JOFjrPcrpLRvAlElvVeNo0nZz9Ci46aNYPMDL2HCpjx//zWcxzrqzEh149OLQMWCZd Fm8L2aQwe6Dxho8UYfTRglTemYBI8DYqRDh1WeF9cU8zlr4+DpVFBKdv8Y90iv+GGYSP G7e9B3nK/yw5koSu0KcHc/UEs/HHG+XQYW9UYwS7ZEQB0aOcWskEA0xZUR1reTpuMWFt 4Av7M1qPhcoV4rBwTGCpiCGDc9IAzCoFhL24sp/pSJ2FAalMbO72S7fvaUSo88I/XCOG FOkTWBEduolKd0TZxOAL3INnxYv8KvUlMlEqoSRof1cBVNplqm2ysCeNYLoL0mMNn6rF A42g== 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=BdbBd7cdgG9urWAId1PBgE453cq0qQxQcZv6InYOks0=; b=LbE94HUHNZAUvOi23eirIQPUigPzcqdOl0p4apmRLRK9wVS0oUPxl5LjWTyVu7XvGC d7lJVws+XoRpSiw+C5f2inZ4bK0GVP8IDhMCqZ7HLvyJeQopg9Szhsn00NYpYLZScE+o K3bUwGSZuI+MVeelCu927NWE0u1BV4fNaJyZSGgVah/AKTxKHwJMFdmoHSLHrJxoQf+R gTdCL5o3O2387ablJSm5uST7xJa4zZd91hUasywQNbnmkKT409YvagfRfDrXtN9OLQd8 KFsmZ5SZ9F0mAojLbSVSqW9otSgdAaqf0HQNdjgf0xQytwC6JYo04uEEmn0mnfDrkPF7 Heng== X-Gm-Message-State: AOAM531qmqWm6MCd49ZX5JfmLUYfmGRTgNRc8yQtU/skPeO13z1Aug+S aJ8SNvERZMHl7pGNT0ENzIxdqLdAmpQ= X-Google-Smtp-Source: ABdhPJw89+iUIcURAGegDZWMxlO7LJF8UuTOwAOb2afFFfj3/xS23RXWWjYHPggj05RO9X4HodZ7ew== X-Received: by 2002:a9d:7457:: with SMTP id p23mr265113otk.85.1626300368556; Wed, 14 Jul 2021 15:06:08 -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.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:06:08 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, trini@konsulko.com Cc: Alexandru Gagniuc , Simon Glass Subject: [PATCH v3 17/19] image: Eliminate IMAGE_ENABLE_VERIFY_ECDSA macro Date: Wed, 14 Jul 2021 17:05:45 -0500 Message-Id: <20210714220547.170371-18-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 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 64663c591b..e20f0b69d5 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