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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5771BC433F5 for ; Tue, 1 Feb 2022 18:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5fjOtBu0RU6z5+FnkuTWFsPWeWy8KNTTosJa1yBDgu4=; b=R+zOMp+OP2Na3n b1C17oBdhxUpUlnzWxtEArdKOSTZLBHxpU5uTHJ2ZAXdufDMrvHnXFBpOyFsP5gMGsl5oSu0bLpQ4 5moB6vg8iKzC4e+8rmAxk6Z6tTBrgSWqA3nzPT6t5U0CP4N7TXWhZemdM3EMgi/53WW4TBDeCSzVd 9BViKpxIz2bmcp/5rA0OFTPseFgkXvNsmb8lepiixbrBT7pDLv/JOcFOxk8aNoWb4/RJqraWHIg0l PQN/9pvG7mRKMin1NRqcPOiXPxAqsE4aUWS8QWZ82hP/ycjOvz44DCkxFEjm4DiKqfmy7MDoc8mWy 4l9Kx3ZSacSKeX/7ck1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nExjo-00DJiP-T9; Tue, 01 Feb 2022 18:18:45 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nExjk-00DJgz-L6 for linux-arm-kernel@lists.infradead.org; Tue, 01 Feb 2022 18:18:42 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF71B61449; Tue, 1 Feb 2022 18:18:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8958C340ED; Tue, 1 Feb 2022 18:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643739519; bh=r6MEhJpQpa0z0aEWBKP/io+VfdeSVl2F4rwHr/pmlFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ee+BBXNJ+ztAgXhUhfF8o83N57ely/4P3XhzY6Yx2lksMQC6gz68nhldKxQOPSejU e1j6N87+9cL15xzoptfbsmvvMudsYFLTMucggl+XxXX3t/mcqYC4er0nOZqxRAxvMs NPacOeiFGaCx2yUFTpsQr+0Kjw59heElvkizDyhojMuZWdni/M16UsOse/jzQ+Ln1L C7hu3YgYJoDudREw7RrMU02LNBRENpfcnuDoqE6wWK8woc7l3TPLhB3CyruVZDHtuW xzKzGN+5tLddOCkmUt8Z9HcrJRVpxSursrDIQRhiTscxzTHPCQi3uvTbEo77jqwl6f T3yyjHbUbHc5A== Date: Tue, 1 Feb 2022 10:18:37 -0800 From: Eric Biggers To: Nathan Huckleberry Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Paul Crowley , Sami Tolvanen Subject: Re: [RFC PATCH 6/7] crypto: x86/polyval: Add PCLMULQDQ accelerated implementation of POLYVAL Message-ID: References: <20220125014422.80552-1-nhuck@google.com> <20220125014422.80552-7-nhuck@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220125014422.80552-7-nhuck@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220201_101840_754644_C57FA97B X-CRM114-Status: GOOD ( 15.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 24, 2022 at 07:44:21PM -0600, Nathan Huckleberry wrote: > Add hardware accelerated version of POLYVAL for x86-64 CPUs with > PCLMULQDQ support. > > This implementation is accelerated using PCLMULQDQ instructions to > perform the finite field computations. For added efficiency, 8 blocks > of the plaintext are processed simultaneously by precomputing the first > 8 powers of the key. > > Schoolbook multiplication is used instead of Karatsuba multiplication > because it was found to be slightly faster on x86-64 machines. > Montgomery reduction must be used instead of Barrett reduction due to > the difference in modulus between POLYVAL's field and other finite > fields. > > More information on POLYVAL can be found in the HCTR2 paper: > Length-preserving encryption with HCTR2: > https://eprint.iacr.org/2021/1441.pdf > > Signed-off-by: Nathan Huckleberry > --- > arch/x86/crypto/Makefile | 3 + > arch/x86/crypto/polyval-clmulni-intel_asm.S | 319 +++++++++++++++++++ This file is causing a build-time warning: arch/x86/crypto/polyval-clmulni-intel_asm.o: warning: objtool: .text+0x0: unreachable instruction - Eric _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel