From patchwork Tue Sep 10 23:18:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 173555 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3077ilq; Tue, 10 Sep 2019 16:19:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwXaqfEaYoUTWQj+SHQJZHrJrsdNZbqjIplz8i0tkCETUAAzfi8E0oRSBrxwtvy+iVeH+E X-Received: by 2002:a05:6402:7cd:: with SMTP id u13mr21150591edy.14.1568157575966; Tue, 10 Sep 2019 16:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568157575; cv=none; d=google.com; s=arc-20160816; b=yue5QmUiLkMf6izwFa06m/7yhntDo+kgQdnJusdV3IrGFaklqgRuO9r/+MJKxARlG0 3B2rUPc19QB9Jx3xf8uc/+rqtZQWWt/JWCp6z9osgcywBUqWR8uquLyf2B+ALr0No5oa sAgcfWRRPf5GnrZy/qgw+MfcudjfLc4MyERN9wE75amhVuBBIm6wbfChErHQRvxIoT2m WSeHJ9rmC/o7gzPOXjjvq7XAhqMrdZd8EmcaiwXeaZYSbzkipEM6oWDIyVsXEqNF0rWN ba3och+r86DtcUeW/tfu9K3L6vvGjiLiTvxYbeqAf8yhToeRelaQVKf3qXf4NAPnW4Hs RqkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=SXqvufRx22Snq4CxB9/c8WHZDNZ5MvJ2HzCzsXJqgHM=; b=rLH8amRW2xtMLm2njL+rfdWkUafaGcgM/4+6o00U3v6B6+ApJxXNITFF1dgJl4zBcm wW5c80EMSevTpnFlkrSfomujVphFGaVkHFyJEYUGYV+PU04QGde99NCu6KoLBLpIztj7 7JdjdJPztdN3DAAK3mBoBuVjbGEbiIZom1BGsQYPgUqwjiZDiYMpE8ilIdMPkLelcXAG vpbr1gs6xLQrnJKntig3b29Ap4mBw/zy0bAFGMuqviqAekXBMmUyLBA4AzYGRAPwVUB0 JGEUvFQmD4KmLJqw2YhfI8PWncPM6LH1isPSPeqeWZLc43XpOkpwabTd9q6SWBC+uSXt b5zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d1fze8HN; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si12341749edc.386.2019.09.10.16.19.35; Tue, 10 Sep 2019 16:19:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d1fze8HN; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725916AbfIJXTa (ORCPT + 3 others); Tue, 10 Sep 2019 19:19:30 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:46323 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfIJXTa (ORCPT ); Tue, 10 Sep 2019 19:19:30 -0400 Received: by mail-wr1-f50.google.com with SMTP id d17so9614778wrq.13 for ; Tue, 10 Sep 2019 16:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SXqvufRx22Snq4CxB9/c8WHZDNZ5MvJ2HzCzsXJqgHM=; b=d1fze8HNJ26w372C7MOYSl0YeOaaQILdmYBO7wYoFgSxcXpHBbR34WKtDC+CZBA8oW hzVUtpxkmbGLc+gVz/0BJkN6I5oHEKF4b0hJh6xD2qRuSxqBU5d4Tme9MnewwhIYSgYY ICTkBMjee+VVdvZKRhEEs4q28XXfEwca/0PJn4eRKJmFo9F5u2u8sLW5m9jP8gZTND6Q zo2soetshVnRVzSSOZ4fMMx0yNOVovfVWSBWsehLNJdeuezamtQaXKscWkAvrP0/7ukr 6KrJvq3hptbx+97kXW8IYpaNqsZdeAhsZWTDbKUW4I2F0wgVueb5FavMUrh1QfVGVdnj iFAQ== 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; bh=SXqvufRx22Snq4CxB9/c8WHZDNZ5MvJ2HzCzsXJqgHM=; b=szxoasXflbuqQ/5DvdfFAFSKVgjM3aOyVItCWNqsTGkXp0Zuuy2LLHN0AbP5HFCbWs 7EE//ZmKqQv5v1vaAkjB/lSSHvSPlGcEgtF8HAcTKuCDk5OErgCBptJNyXIsWgt0B69z CkJEepcHnMNricPGcVa7ltYCxcf2YRkxcAqMFqwBzKtMbI2FOmO0C4F7zIPX2PRAZL4R FT3+yTtfSxrfsqKUtLnqJ9a6Qw5NRK2zaVUV+ogvcUYOxUPEZNbVyZNaVgZSx0Bj4SXh Vv+rSYVunXF6aJHuFK0nxjv6hrDaCpKNgLps4xznXXj2bk6bbsqDmz+IEnVPzBU4x8rl UaRQ== X-Gm-Message-State: APjAAAXXfEP1RqTn/1fmVrr18Dvf/3mT1RcASYA61t4P/WWx2h0ww+IP IaqdQ2C/9ROOkfL3NYqPEPviqwRUzabXznSl X-Received: by 2002:adf:ef05:: with SMTP id e5mr27760313wro.127.1568157567583; Tue, 10 Sep 2019 16:19:27 -0700 (PDT) Received: from e111045-lin.nice.arm.com ([148.69.85.38]) by smtp.gmail.com with ESMTPSA id y186sm2137846wmb.41.2019.09.10.16.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 16:19:26 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, herbert@gondor.apana.org.au, ebiggers@google.com, marc.zyngier@arm.com, Ard Biesheuvel Subject: [PATCH 0/2] crypto: faster GCM-AES for arm64 Date: Wed, 11 Sep 2019 00:18:58 +0100 Message-Id: <20190910231900.25445-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This series reimplements gcm(aes) for arm64 systems that support the AES and 64x64->128 PMULL/PMULL2 instructions. Patch #1 adds a test case and patch #2 updates the driver. Ard Biesheuvel (2): crypto: testmgr - add another gcm(aes) testcase crypto: arm64/gcm-ce - implement 4 way interleave arch/arm64/crypto/ghash-ce-core.S | 501 ++++++++++++++------ arch/arm64/crypto/ghash-ce-glue.c | 293 +++++------- crypto/testmgr.h | 192 ++++++++ 3 files changed, 659 insertions(+), 327 deletions(-) -- 2.17.1