From patchwork Wed Dec 23 08:10:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 11987859 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 2F4C1C433E0 for ; Wed, 23 Dec 2020 08:16:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AFB072070B for ; Wed, 23 Dec 2020 08:16:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AFB072070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9CxgJfZ2AD0WbG/mWC/ASnKQmSLD0sBLq5VWu0yhaqA=; b=hMdt5sSxsyBYp2IdZWURKGd+Z seaLtX6TiDUbhWiV0cLPMlVtl1s4II3B3ZvcP/hp6XThzKATC+nv3StlNTd7Gg8qMwfUVxWymj1Sz nTwmPl7GTdQcfH6cfdAmsFV8aBIquC2DPwonosbet+OtYNj3stnziwVXSAwUvWPgmqzvDCtIoxwSk 08se+ERgm4hbHz503lP3wR+5j/cJv7NjCr7zq4I3kICGu/v0uK6ckL5aJdygN9ICtjaNx+TivxD/Z SE2WC2CYNP93ORhGnjGOesAltODWXp9NLI7X1rN9BDgBXfrWMPSyok4I0aSEIJcskuFbMrBHf4AsB yOIFmDmKg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1krzHp-0007Qc-3Z; Wed, 23 Dec 2020 08:14:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1krzGW-0006z9-LY for linux-arm-kernel@lists.infradead.org; Wed, 23 Dec 2020 08:13:05 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3042D22512; Wed, 23 Dec 2020 08:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608711178; bh=gZU5h+3+EaOoF4SX/C9e5RdZA4PwrlP/kPxt0AaR0Xo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iKhNh3FyKWUCsqIS29saRGqHsC5eS6qYKuPIwzYZsAgPBI3TrWygntpp7WRLNILJ7 xR29UuidItsqwjG879rJIulFsYJAqdWVgEv5iiezs73frIYde1IDKFXTNmjrUEvWku ljjhtWYSejaV0u3ZAE1ZVNN2lIMrasdtF581j8GIlCUbc/dBsS0TN4Pg6z21Va3px4 1gL8pqO2iwpQP+VXJgrIMpZXbfmixtNn9nnxa63aLI5aOsb9h1F2S1iPUWEefX1nLc E4AuoNrwrzm8y15kVLTmm2G6Ptrn/rRt0/NsCzp6UK5O6ie8YvzetTx941LcaXsr5a YeBGDJwQw9xRw== From: Eric Biggers To: linux-crypto@vger.kernel.org Subject: [PATCH v3 11/14] wireguard: Kconfig: select CRYPTO_BLAKE2S_ARM Date: Wed, 23 Dec 2020 00:10:00 -0800 Message-Id: <20201223081003.373663-12-ebiggers@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201223081003.373663-1-ebiggers@kernel.org> References: <20201223081003.373663-1-ebiggers@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201223_031300_863476_1FA2C4CA X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason A . Donenfeld" , Herbert Xu , David Sterba , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Paul Crowley Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Eric Biggers When available, select the new implementation of BLAKE2s for 32-bit ARM. This is faster than the generic C implementation. Reviewed-by: Jason A. Donenfeld Acked-by: Ard Biesheuvel Signed-off-by: Eric Biggers --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 260f9f46668b8..672fcdd9aecbb 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -90,6 +90,7 @@ config WIREGUARD select CRYPTO_CHACHA20_NEON if (ARM || ARM64) && KERNEL_MODE_NEON select CRYPTO_POLY1305_NEON if ARM64 && KERNEL_MODE_NEON select CRYPTO_POLY1305_ARM if ARM + select CRYPTO_BLAKE2S_ARM if ARM select CRYPTO_CURVE25519_NEON if ARM && KERNEL_MODE_NEON select CRYPTO_CHACHA_MIPS if CPU_MIPS32_R2 select CRYPTO_POLY1305_MIPS if CPU_MIPS32 || (CPU_MIPS64 && 64BIT)