Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426307AbdD1QMt (ORCPT ); Fri, 28 Apr 2017 12:12:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34380 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164100AbdD1QMk (ORCPT ); Fri, 28 Apr 2017 12:12:40 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0235D9F72A Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=queasysnail.net Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=sd@queasysnail.net DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0235D9F72A From: Sabrina Dubroca To: netdev@vger.kernel.org Cc: Sabrina Dubroca , Hannes Frederic Sowa , Herbert Xu , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] crypto: aesni: provide generic gcm(aes) Date: Fri, 28 Apr 2017 18:11:55 +0200 Message-Id: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 28 Apr 2017 16:12:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1336 Lines: 29 The current aesni AES-GCM implementation only offers support for rfc4106(gcm(aes)). This makes some things a little bit simpler (handling of associated data and authentication tag), but it means that non-IPsec users of gcm(aes) have to rely on gcm_base(ctr-aes-aesni,ghash-clmulni), which is much slower. This patchset adds handling of all valid authentication tag lengths and of any associated data length to the assembly code, and exposes a generic gcm(aes) AEAD algorithm to the crypto API. With these patches, performance of MACsec on a single core increases by 40% (from 4.5Gbps to around 6.3Gbps). Sabrina Dubroca (7): crypto: aesni: make non-AVX AES-GCM work with any aadlen crypto: aesni: make non-AVX AES-GCM work with all valid auth_tag_len crypto: aesni: make AVX AES-GCM work with any aadlen crypto: aesni: make AVX AES-GCM work with all valid auth_tag_len crypto: aesni: make AVX2 AES-GCM work with any aadlen crypto: aesni: make AVX2 AES-GCM work with all valid auth_tag_len crypto: aesni: add generic gcm(aes) arch/x86/crypto/aesni-intel_asm.S | 231 +++++++++++++++++++------ arch/x86/crypto/aesni-intel_avx-x86_64.S | 283 ++++++++++++++++++++++--------- arch/x86/crypto/aesni-intel_glue.c | 208 +++++++++++++++++------ 3 files changed, 539 insertions(+), 183 deletions(-) -- 2.12.2