From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2A912C636D6 for ; Wed, 22 Feb 2023 16:40:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 878AB85B24; Wed, 22 Feb 2023 17:36:44 +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="UbUF6Uqp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F062685B08; Wed, 22 Feb 2023 17:35:49 +0100 (CET) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 45F7D85B18 for ; Wed, 22 Feb 2023 17:34:59 +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-xd32.google.com with SMTP id d11so3371125iow.0 for ; Wed, 22 Feb 2023 08:34:59 -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=/AXJcaWdd2wcC1lFa5wzcm2/tBTskcUidhvyHQKslmg=; b=UbUF6UqpkMlSBWl3YuAH1s86QaXyTStcH54xSc9ZnCtxcukTcbAZKsRrZX+mAwMOhd ZHk5eEBTCCSLq/uAi4GAUQKACJuweD+91ZHfcqEgj/FBufOKyOlkF3ndCAU1EfOcSikq MnAvpmLH8MT8eACK7OuGnbksOYzrrZgo1S1bs= 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=/AXJcaWdd2wcC1lFa5wzcm2/tBTskcUidhvyHQKslmg=; b=b40yziuoZ5vSh8TxGZ609hFvjoCSS4PF2AdKfkNONOrj08uBxLF44KpO+AEzhbjA2J Ot/xKcU77YmMy4IHJwAnAkElOT027j3K2NFZ1FtnLPoJQO3RFgXo/TNyBq0ZdgFr/1i1 sevjyRA17PkuxcnhoHH1eSJ2OFUyKudIEu1bx/Zzo1DpmoQXCVbOINLwfD+Xz/jNNm0j MVjwJ6Rq5tZwyWoH5kbHze597UjdK1YZYnDT76/JDy0fIFbSRwti14IBVHqyHtG4z6/2 ew18n9K70+QDlFOe7kvS1DCGqgRJ/wvy6Ozj/rUbKNSmh1mNTX6ygLNrW7hFeEo3bvFc 97pw== X-Gm-Message-State: AO0yUKVVrhfhHrJszvrsFSnj872zq4HjVpksLaEe4cQ7SoblDpPbt0x9 MHSnhxx9lOIZVMv8iyAAl50aWdVsOTg8MAMA X-Google-Smtp-Source: AK7set/IYurb+d5CHrvCdJy98YiHQUBfe4RveblZPH5BA5HvfXhXn9b2WXCzvhn8dJz6IjP1Df0xDA== X-Received: by 2002:a05:6602:418e:b0:74c:9b9a:2d17 with SMTP id bx14-20020a056602418e00b0074c9b9a2d17mr484757iob.0.1677083698762; Wed, 22 Feb 2023 08:34:58 -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 z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:34:58 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Brandon Maier , Heinrich Schuchardt , Ilias Apalodimas , Kautuk Consul , Philippe Reynes , Rasmus Villemoes , Sughosh Ganu Subject: [PATCH v5 20/44] lib: Add VPL options for SHA1 and SHA256 Date: Wed, 22 Feb 2023 09:34:01 -0700 Message-Id: <20230222163425.2043934-21-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-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 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.6 at phobos.denx.de X-Virus-Status: Clean Add these options so these algorithms can be used in VPL. Signed-off-by: Simon Glass --- (no changes since v1) lib/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 1c93f523b3a..08318843231 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -579,6 +579,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 -- 2.39.2.637.g21b0678d19-goog