Message ID | 20230212231638.1134219-48-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=PubP+SX/; 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 4PFPCs4DDsz23qt for <incoming@patchwork.ozlabs.org>; Mon, 13 Feb 2023 10:42:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 11F4E8524F; Mon, 13 Feb 2023 00:42:34 +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="PubP+SX/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2246A85824; Mon, 13 Feb 2023 00:18:11 +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-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 6384285760 for <u-boot@lists.denx.de>; Mon, 13 Feb 2023 00:17:51 +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-xd2d.google.com with SMTP id a10so3964001iod.0 for <u-boot@lists.denx.de>; Sun, 12 Feb 2023 15:17:51 -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=wMRHpAbq9Bs5IvUopP4CcOv9BRTGfKPtyWEtXDxvs9I=; b=PubP+SX/rxTv8fpUOdZ35J01Ucv/hUbsfGMbHv6zN2LwSBSSwbSyavMCJNeJ/y/C/w x9PM5DZD/h5x+SYr9H1XLYHUWGciQTNTNvZCJs1uU5d06wG8k8ihicCvUCL+1FkaH4uf Z/YmfgBlhhInEY6/9mE4L0/9zix1J40TDp9kw= 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=wMRHpAbq9Bs5IvUopP4CcOv9BRTGfKPtyWEtXDxvs9I=; b=j2f80nsL2h17pCI+m4E8cFS6EOCgiNR7LOPpWvMX0DVzmOgCaFs8i4voS+/NQT/J/P 4xhpsT/W5VdztlLJMN4fQinxZKvDp/P5y2EWcd1mtCSyakl9/UB0aErNPYFuMGKAW039 irwIooIa01nPKq/fQ0ej95XJFpzHKVYDx6aFN6v2HPXcVZt0PwzRYbvoBwEJY18/YKBy oz6tzg38lA4YS6q6KaIsfWeXRSmXOlwFIbVYMhpfwPcz0HXymYekVmAOXJr4hTdjPjjd 7oKHa4nSieyaMAMR6TulnUzoOFQA74qygTHo4bE2Q0014YJMn+1xnT9uxTXrrKr9DLZM uRJw== X-Gm-Message-State: AO0yUKUEEG3Q9cKApSIYsBOfeJ2BXs7Jqz86UT2dAv0wTy6PU/helIzZ sYyfq+a9T6kASYvp3TzZpVWgeaaIxmk7G638 X-Google-Smtp-Source: AK7set+6MnqeINwK3WEgtO46bGgfRy4rsx9DPuA7TCF2t1zIILHFUkA9ruP7JVFq4gKqTZejIIeDxw== X-Received: by 2002:a6b:7b04:0:b0:73a:4134:aba8 with SMTP id l4-20020a6b7b04000000b0073a4134aba8mr12427746iop.3.1676243870871; Sun, 12 Feb 2023 15:17:50 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:50 -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 47/95] lib: Add VPL options for SHA1 and SHA256 Date: Sun, 12 Feb 2023 16:15:50 -0700 Message-Id: <20230212231638.1134219-48-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-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 0a02f3e89ae..21a43effe49 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(+)