From patchwork Fri Apr 24 13:40:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 197838 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6DB6C55191 for ; Fri, 24 Apr 2020 13:41:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA99420767 for ; Fri, 24 Apr 2020 13:41:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="PbpA/M6v" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727074AbgDXNk7 (ORCPT ); Fri, 24 Apr 2020 09:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbgDXNk5 (ORCPT ); Fri, 24 Apr 2020 09:40:57 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F86DC09B046 for ; Fri, 24 Apr 2020 06:40:57 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id b11so10851429wrs.6 for ; Fri, 24 Apr 2020 06:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lZIpuSXPWLsZ3Ntzn02RaqZNB9d6vv/shxve5+NZrVw=; b=PbpA/M6vlDjGx2msHfbPEgx/0Gh27wx83HRlNWMItDypNd1lm61IKglY2gTJqgHinR pAI2vwQKyWYpC2JofIrkmK4L/w5JRW9VVwabZuxF2F/EAI6fyRdtTwlFwDnJzwHavsGj eYkmVQCHT7SKlFeCGqLmQvVvfOC1wBlohUFmISLz858FmCRTkQxCstXuIUjjd4hz3J8l iYe30ZIP7XCSCzCu/Zg6EBfg2nssXmH0tNxPu5gPFmnmzwpIE8sKgzXC+yqF2EqCUwOs CO1u5xmMHTLIISY16OX4YAbl95NyLc04RJR967aJqJNt0Q7WM/Xcw+hslecFOvRf1d7S ReNQ== 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; bh=lZIpuSXPWLsZ3Ntzn02RaqZNB9d6vv/shxve5+NZrVw=; b=PHgVXjUiOzr+C9sOTTc0nTJ/gaGoGVEE29V4C+GAFVkDO8yz1qUNzYjUDZwIeT/aCb lF32A89PB2XD6RhTaZul4yOUHNi3WMMBoFNCGHRnysFvUuSTlCgEkQvFkA/oVYxtCYZv SAuHwvxMith6AIu9eUKPAakF2614Aor3on7x467R0QiG5NhWo9EBrI1Z9UheVZomw9nK hma9hcSr7Uugvu3mI9ZEuhTc46l+DW4oQtDiIyScN2HgSusqASfFk1N4RwYVTKWbeHUg FcuOcYrcsh1OojZ5BTeele1H9kYPnDDTJ7pUwRGboE48wY3mkgeXzXIPrFPLpP2cNTZs 1qZg== X-Gm-Message-State: AGi0PuZgen9eAVO13dmF08fml4tYtWSg1EfQTB36iLKM4b5tVOIXti1s j4nmoV38AipBNoHBT487Ae+dXSIyaAk= X-Google-Smtp-Source: APiQypL35SBMMUsY5m5WKFj4P1hk4bx3+QgIbAuAEuKOPI7TwoKFQzAuisIx7hpc0X/gdYCoGiqr1Q== X-Received: by 2002:adf:fe87:: with SMTP id l7mr11890198wrr.360.1587735656113; Fri, 24 Apr 2020 06:40:56 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id 185sm3408958wmc.32.2020.04.24.06.40.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2020 06:40:55 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v3 1/3] crypto: drbg: DRBG should select SHA512 Date: Fri, 24 Apr 2020 13:40:45 +0000 Message-Id: <1587735647-17718-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587735647-17718-1-git-send-email-clabbe@baylibre.com> References: <1587735647-17718-1-git-send-email-clabbe@baylibre.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Since DRBG could use SHA384/SHA512, it should select it. Signed-off-by: Corentin Labbe --- crypto/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index c24a47406f8f..6d27fc6a7bf5 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1810,10 +1810,12 @@ config CRYPTO_DRBG_HMAC default y select CRYPTO_HMAC select CRYPTO_SHA256 + select CRYPTO_SHA512 config CRYPTO_DRBG_HASH bool "Enable Hash DRBG" select CRYPTO_SHA256 + select CRYPTO_SHA512 help Enable the Hash DRBG variant as defined in NIST SP800-90A.