Message ID | 20210517163840.839097-18-mr.nuke.me@gmail.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) 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=stvJMBLR; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FkQ0t1pZtz9sCD for <incoming@patchwork.ozlabs.org>; Tue, 18 May 2021 02:42:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 36D9582E3E; Mon, 17 May 2021 18:41:41 +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="stvJMBLR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E114982B97; Mon, 17 May 2021 18:39:36 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 60E7482CE2 for <u-boot@lists.denx.de>; Mon, 17 May 2021 18:38:57 +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-x22a.google.com with SMTP id h9so7059280oih.4 for <u-boot@lists.denx.de>; Mon, 17 May 2021 09:38:57 -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=stvJMBLRNSK9/1FPR4ebrcJWhr1UHQaS1EF8158BJXIPqF0BRuir8tmG4INOuwSO8k bRFEPRJiL5OoBz1fN66A0/ghqHA+Qd5zvh4skRN4SqpWZm5xIiOyJn05jTK1c7BPsJ4N qpqnRnlWWOzzTP2BmEixzw14YkDx8SfZTvrLC2AGY3JysjQoIY8GSAXfTLx+WaYvpDcl L7iddGC9Kp+Ebc3OM5462TNBCJMUY3CVcscT+OKBuatV73+Twm6EKWwFN0k5lAN+c+Gi RG2RFHPs1mUdesoOTJNrzEk2TiIrM0vKKGmTAx1URIHdZ07crSA0IlsRbd3s8EK9HfOO jkvQ== 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=d/DrW2Ww8z2ZfwgM8swLfm8uCPmzM1075RZQxsfFGn3xu1KSbzfS6ZTv5raxAjOEkq IdYBuPkuV/C6u6seTlDOhFunC2Uk6jwJkqWIvdzzhcj4NReIcIy7S2/YppZa6ek0Ef14 0Sb5acevXN47FPaXrXO0rC8IBxWABhozeAay5lw2ER31PJYflJVT3806lr87j7I8OFZp Gpj/RlA1p6bURB+1HXRbbsq+0qGp9kMcNffZppvEOJg02QZZrAVyiAKMD8iCKHM4VF1S 0SDzku84MYx4irwLWP9zNVzZUBImswNVqvJI+I+S9CbL2fv60J3nmXy1goOt64qrhGha hHjQ== X-Gm-Message-State: AOAM533Xk5Qicg8wEG+3JGCRiwDTudD62h27c78Ow7BrFkiDbI+1Dzj/ wMdlTAIQXUDVGa2isjhKpuPHBGMR0Rgb3g== X-Google-Smtp-Source: ABdhPJz2P+89ePGYP5FhNQcc8GCaFbkrrVTQkNnz6WKfSUlPc470MWpjaCWnvLnowrtN4NNnnvscaw== X-Received: by 2002:a05:6808:4c6:: with SMTP id a6mr491650oie.162.1621269535887; Mon, 17 May 2021 09:38:55 -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 64sm3103152oob.12.2021.05.17.09.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 09:38:55 -0700 (PDT) From: Alexandru Gagniuc <mr.nuke.me@gmail.com> To: u-boot@lists.denx.de, sjg@chromium.org Cc: Alexandru Gagniuc <mr.nuke.me@gmail.com>, trini@konsulko.com Subject: [PATCH 17/18] image: Eliminate IMAGE_ENABLE_VERIFY_ECDSA macro Date: Mon, 17 May 2021 11:38:39 -0500 Message-Id: <20210517163840.839097-18-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517163840.839097-1-mr.nuke.me@gmail.com> References: <20210517163840.839097-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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
image: Reduce #ifdef abuse in image code
|
expand
|
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 <openssl/evp.h> # 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