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 497D2C636CC for ; Tue, 31 Jan 2023 15:30:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90D4D85B05; Tue, 31 Jan 2023 16:29:10 +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="oI0Kqg9G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6315C85AEF; Tue, 31 Jan 2023 16:28:16 +0100 (CET) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 748E085AED for ; Tue, 31 Jan 2023 16:27: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-il1-x12f.google.com with SMTP id u8so6603970ilq.13 for ; Tue, 31 Jan 2023 07:27: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=lNhidhWdDrO2o38iQvHQMzDi6RSwF8JOl5dtZ5ykdgE=; b=oI0Kqg9GJXvZgwsipg8zCtW4LRx6fyXsZ+slbddbGRxf4KrNf/3rA6/261wB/H7SFP 9c+zH+DoiFIIY87fGlggeCOPS7oOg9pmD8YI/6l3KyNDRFfefsZiVvPREwCZAOtiwuY7 s3wylj3W8pgaHEGcctsGo25tTuUV8rbnOmyVM= 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=lNhidhWdDrO2o38iQvHQMzDi6RSwF8JOl5dtZ5ykdgE=; b=DSn/OC+wiQV4lxYhgTgtEoPZ19Hz3BaBCLXiVCX68W9dzZVGMgh0mQdc9hBROz0T/d 6JYdQh8MYLP/QvZwh6GqMVXuu41Losib3c9M2nZDdPUo1GvMbjjn5xUgAlhbBwvRnCl/ wg9suib1gr0oGR3I0MGqDieztjSkdx6CadBr7EN+gO1MTzXfMic6G3HaqfnkjsveQirS G06eQxDwNLGts1m6L+89U9gJ/fhNe28t/rHhqdr2+HHPJ+eDa+gLozHB01umtUaHmUSs SBjROri4VinWwfB1qC/IL9VSzLTL/tvUYOZfDzZYS/BbLy98LcRL7xtNsZRR/p3LV2r2 2s0g== X-Gm-Message-State: AFqh2kppBtcs7etqGgl4zn88JnpHv+m4K4rpKUnZGF0u5muCCC5qWJMO p5XPxqhRtYn/XcLbKdca/wqhcNPtLsRYxBZS X-Google-Smtp-Source: AMrXdXvqM6MeCHJrljAspOxF4SQaSSY0cmX22r7iPv2nBF24Ib1MNZ9c+TxY9mmSvOwxwdxPECsYvg== X-Received: by 2002:a92:ad11:0:b0:30f:3b5d:69f with SMTP id w17-20020a92ad11000000b0030f3b5d069fmr31729848ilh.23.1675178867879; Tue, 31 Jan 2023 07:27:47 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id u4-20020a02cb84000000b0039db6cffcbasm5649328jap.71.2023.01.31.07.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 07:27:47 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 11/32] lib: Add VPL options for SHA1 and SHA256 Date: Tue, 31 Jan 2023 08:26:41 -0700 Message-Id: <20230131152702.249197-12-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230131152702.249197-1-sjg@chromium.org> References: <20230131152702.249197-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 --- lib/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- 2.39.1.456.gfc5497dd1b-goog