Message ID | 20230206190550.1692420-35-sjg@chromium.org |
---|---|
State | RFC |
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@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=biQ9+j1U; 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P9bXW52x1z23y2 for <incoming@patchwork.ozlabs.org>; Tue, 7 Feb 2023 06:14:03 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 167EE85C70; Mon, 6 Feb 2023 20:11:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="biQ9+j1U"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3976D8514E; Mon, 6 Feb 2023 20:09:36 +0100 (CET) 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 EB09A85C49 for <u-boot@lists.denx.de>; Mon, 6 Feb 2023 20:09:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd34.google.com with SMTP id y2so4818992iot.4 for <u-boot@lists.denx.de>; Mon, 06 Feb 2023 11:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7DQ8yq/9K7UM0CfnnUBRHcATenwa9HNQZz4KajEcTQM=; b=biQ9+j1UW7MHScxmtx8GYUIsQRQshwOikYySrN7Twjp+lMlK5k4cvog+oWkxJXsj98 sv3kbPvgH1ZehoXee4yEYWrbtZpTo4nvlNUGyAUkkuZCGTrUGQQVTyCNiXrCD1gBSUkT CRsAZMcYXcbxrn0PcurPLT7ZprojXEg6b2P4c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7DQ8yq/9K7UM0CfnnUBRHcATenwa9HNQZz4KajEcTQM=; b=artYHGrsqJPPTUbwU3VzmdTedryIdFNeVMrpZtcgfuIUvgE64y9IrXz8ZJ6kOj9zAD uYSbhmxFdzo2/P07A6QV03OmB9+03PmMpEV5UCqTO/hzr+I7anhrzq+OGgveRsfezBeq tUM4Jdpf8r4rx3n8VpRH6/4iTfMmWqsWMwq0kNOXHmUcSV44e1y35pVsBpvEByHkwtmi HHewGLaKBA2h8YJ4cmBjfFNN3qGfzAbpGAdP91TbnMTg/Q9yXDQPU34ip1bynBHAUbWJ MQOrPR318P4MjnZo6PlqyF84xW9sp8lgsBvJJbpHivvEC2Hg3YMiW/ROVAQN33mSidzA mlww== X-Gm-Message-State: AO0yUKXzHIs2lFLsua3KW9mkRbFyFBEjixl7KATmEk4S+c7dByfES8DF m6dm4SGFDwAnSUreGtRLXGd0Bl+vmBpN97QR X-Google-Smtp-Source: AK7set/yfpjNP+8m2T0L3sOdMy/n9WNtRXeHwBFU7nOwFS+jdo3UlMn4P/8HEwmTGElVgCzxp1epdQ== X-Received: by 2002:a6b:f612:0:b0:6de:3e2c:d791 with SMTP id n18-20020a6bf612000000b006de3e2cd791mr143947ioh.1.1675710556387; Mon, 06 Feb 2023 11:09:16 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:34e9:6977:1cac:fd32]) by smtp.gmail.com with ESMTPSA id t24-20020a028798000000b00375a885f908sm749878jai.36.2023.02.06.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 11:09:16 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 34/81] lib: Add VPL options for SHA1 and SHA256 Date: Mon, 6 Feb 2023 12:05:02 -0700 Message-Id: <20230206190550.1692420-35-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230206190550.1692420-1-sjg@chromium.org> References: <20230206190550.1692420-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
RFC: Migrate to split config
|
expand
|
diff --git a/lib/Kconfig b/lib/Kconfig index 47edd0719aa..6de50f31bc0 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -583,6 +583,26 @@ config SPL_SHA_PROG_HW_ACCEL endif +config VPL_SHA1 + bool "Enable SHA1 support in VPL" + depends on VPL + default y if SHA1 + help + This option enables support of hashing using SHA1 algorithm. + The hash is calculated in software. + The SHA1 algorithm produces a 160-bit (20-byte) hash value + (digest). + +config VPL_SHA256 + bool "Enable SHA256 support in VPL" + depends on VPL + default y if SHA256 + help + This option enables support of hashing using SHA256 algorithm. + The hash is calculated in software. + The SHA256 algorithm produces a 256-bit (32-byte) hash value + (digest). + if SHA_HW_ACCEL config SHA512_HW_ACCEL
Add these options so these algorithms can be used in VPL. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) lib/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)