From patchwork Thu Feb 25 18:27:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 387230 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp544380jap; Thu, 25 Feb 2021 10:28:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4ThJxaSzW33YvN8JaciRh3n8JRu0zC/cofEyoejgJ8qvasFd+5i4aceiCCpLLh6v/GAIr X-Received: by 2002:a17:906:380b:: with SMTP id v11mr4001071ejc.183.1614277723362; Thu, 25 Feb 2021 10:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614277723; cv=none; d=google.com; s=arc-20160816; b=rFG4BoSdW2s5qGMefDsdzEa2AOt75Wubr6t5BL3h2KzuuFi5IvTJestrhTeEilOYF/ ZLtfoLN15ta0yUqe517SROSa7EVvhq1ejg99ZFm0TyA4ubvdtaMMcqBdqZGWK02LgMXG lHy/9tOj5ASXrITxdBLKyAMeMwjU+H6/EmQS6EP5soRFP85ITbMqxAUTDiOOYaClHiBZ rG82lblBXS78MrXfcZZNUSid/QA4MYSrKkr0SSXgXkKkcMlABgnG7woJ6XMClTuppx62 DkMVLpOPei9ohSDTVi1xoPW6+DVugQJyg2TNPs1iQKcr2aWTB5OuHUZUwpWbSvFKJXB0 CYHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3qSHutfjPy0EOhPiH6AWkm82ddTRUb/cgeNETSCNBCc=; b=KF84VLMT+B5XfMQ1U6Vv+oO8JAW10Eb5/YyGH/s8tCbzdJeXA1PaUfjzQ3pXXX1Qij lnqmDPQvTkDz+pA3tzfCBNHcfs2nRF93SOk8DDNJuPzJRO+8hSInuaoZCG1lPEx8oI0D YPbNUe7lKvhAgHl2nkMl2d401CR7QfNc9+RMsTuPoBBEvPz8OKvc+ncJCy2/RBQVUHd6 plUktpaf76tBaBTrz1lWvCF+TQaNmSHU2vOyp67tHHuP84iq0AT7NPuMiAJE17k1r53i z8vTcWXhQb1oyJJzEyquhWRFI5Nu6Sefl6CDju1bMuoxOQgKOiWZuZOpSI4QWUKRy6Yy MEBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FBYbGpWJ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t8si3545767edr.132.2021.02.25.10.28.43; Thu, 25 Feb 2021 10:28:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FBYbGpWJ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S233001AbhBYS17 (ORCPT + 2 others); Thu, 25 Feb 2021 13:27:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbhBYS16 (ORCPT ); Thu, 25 Feb 2021 13:27:58 -0500 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6011EC061574 for ; Thu, 25 Feb 2021 10:27:18 -0800 (PST) Received: by mail-qt1-x829.google.com with SMTP id s15so4837052qtq.0 for ; Thu, 25 Feb 2021 10:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3qSHutfjPy0EOhPiH6AWkm82ddTRUb/cgeNETSCNBCc=; b=FBYbGpWJCE+HSYVdV5pw2twtzkKMT+QzWxslw7/BhILvYCUfVXTEcQrASttmL4Z+mq 7ZiwQDVAKnLPnM0thr9I4RyPIc0tPMpmbbS9WdaN/W5elbbolcvwnV4MI0egLeeo+LmM +C109WKTh6FqVHXVqWMKBWt4esqtR6BXTZGCxF3Fdem1p0vuR69kTxIwLVjJ8QPuv3UV xtJRl40sV3T1SkXqZKgX4dQvdTKs01zbIIl5A3v/8MWjmquEGjsvL6SE7js5wEXaXkm2 JOr8JDtH6mdoh4CJRfjj6+wiJqaSBj/B5XoVsk3Q+DrioVDyXEi4kqQw1GBVoqX+An7k VuxA== 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:mime-version :content-transfer-encoding; bh=3qSHutfjPy0EOhPiH6AWkm82ddTRUb/cgeNETSCNBCc=; b=kz3gH+4FdeckJUATMziKn7FvRe2NCwE0k1MxRu9T8rBFOMqagFJm4bICmmOICoBlOx xJDXUWBuZ8rSQ8EQFFSfp03Wq8iLPIB62VsmIlZOZJFM0bFhsWktuC4JQg30GnVBpqcn C8v1W0fLPvrFxNB3pb2S4BDSmrW/ly1YEMsj82pEfFiNJpdCpneQrqyDhaqYBk6J/3Hr 2FdcMGcwIDho+puBjF3dxX6EihL2hUlopLxsDb0/VcsHvxRXuT8d7KsRKsVGVMk3/nBW wc2EDllbNKOGBFvFriiNfw1Yg8BxV/ismcKNT4cErGHrWDDfNj5g9iq89/uHIp77i9e4 ziiQ== X-Gm-Message-State: AOAM531nxLiLR115RxrFuyqJvsXqEaVRXf51WmFbIdA/p+hJmWnOjDDi MQB3b5GdBXf+Zk9FoWzVNfNGaw== X-Received: by 2002:ac8:53c2:: with SMTP id c2mr3491946qtq.166.1614277637530; Thu, 25 Feb 2021 10:27:17 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id l65sm4519678qkf.113.2021.02.25.10.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 10:27:17 -0800 (PST) From: Thara Gopinath To: herbert@gondor.apana.org.au, davem@davemloft.net, bjorn.andersson@linaro.org Cc: ebiggers@google.com, ardb@kernel.org, sivaprak@codeaurora.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] Add support for AEAD algorithms in Qualcomm Crypto Engine driver Date: Thu, 25 Feb 2021 13:27:09 -0500 Message-Id: <20210225182716.1402449-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Enable support for AEAD algorithms in Qualcomm CE driver. The first three patches in this series are cleanups and add a few missing pieces required to add support for AEAD algorithms. Patch 4 introduces supported AEAD transformations on Qualcomm CE. Patches 5 and 6 implements the h/w infrastructure needed to enable and run the AEAD transformations on Qualcomm CE. Patch 7 adds support to queue fallback algorithms in case of unsupported special inputs. This series is dependant on https://lkml.org/lkml/2021/2/11/1052. Thara Gopinath (7): crypto: qce: common: Add MAC failed error checking crypto: qce: common: Make result dump optional crypto: qce: Add mode for rfc4309 crypto: qce: Add support for AEAD algorithms crypto: qce: common: Clean up qce_auth_cfg crypto: qce: common: Add support for AEAD algorithms crypto: qce: aead: Schedule fallback algorithm drivers/crypto/Kconfig | 15 + drivers/crypto/qce/Makefile | 1 + drivers/crypto/qce/aead.c | 817 ++++++++++++++++++++++++++++++++++++ drivers/crypto/qce/aead.h | 56 +++ drivers/crypto/qce/common.c | 198 ++++++++- drivers/crypto/qce/common.h | 9 +- drivers/crypto/qce/core.c | 4 + 7 files changed, 1077 insertions(+), 23 deletions(-) create mode 100644 drivers/crypto/qce/aead.c create mode 100644 drivers/crypto/qce/aead.h -- 2.25.1