From patchwork Sat Apr 17 13:24:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 423410 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp1228865jaf; Sat, 17 Apr 2021 06:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsBwWNsH3k6eRP0I/nJI/mrx6SUR7lemwHVDtX76Mmz8GPEdayQIsonZxrx1f2xsmPbspM X-Received: by 2002:aa7:c913:: with SMTP id b19mr15710323edt.170.1618665907360; Sat, 17 Apr 2021 06:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618665907; cv=none; d=google.com; s=arc-20160816; b=JGjY6UyAljWY87U6iPms9kOZBdelpOoanaf4lT6E53tEYdb3m7/5BOUfqwN/Lvv7Uv tpiSTrens7wzKAJ7VMKnRptj9srmI4jApfwyd30cC7Wh0DvRJFeZzkl9T8Yzm/3HlSiZ wvy9iFg0q2JzcD3fRP0b+QWYzni2FhndfdOi2lDkP0fqhfGkJ6tyEOlI7w+NCl8WPvXp 77sy6IXzuky4w0HIPkNa+QO5elelmir01JgN6DbeNreM7pkEaj7MierhOUSfQ3htIWka 6K6Or2qZVtnbnp+upcO6KCRdCq51hjBhAj0vGvV+aqVz2XNbd5etjbmuaKMhre9Mhenm Mu+A== 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=BZm00Xc0p/94j6srLK1r3tkA4U5Cw6X9E6ocH2iLzlI=; b=yGHO6tPYDCWMAcjxEgHn+6yAB276Pn//bA/s9ZzAIsPr128NARF90l5MEle9Aoslxi DDHVcqptGT2LhFMWr6syOk8lOpwHdyCssb0dGLvf7+RLADjUZeeDcJU9dvC2C2OFIPxa RwX68KgZsafH4hMcMtaGaLl/CKzOquQdmkbC8PU7Ffh+j24Zff/uESMENKop9ShosyrX DliPK+dUKhwoc59KAZLnG7itSGVCy830G2dfobSXfDd7YDTFVMT8AHhebyu/T52qHFdv B8rwb1ZEbQzsYB9Np73k51HWsU2+x9Hco/xnq7rR3LoaTBMcrY/RNW5HYyrl/NT+YPrY 0Utw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWt1fRfA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 h2si7277080ede.520.2021.04.17.06.25.06; Sat, 17 Apr 2021 06:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=CWt1fRfA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S236092AbhDQNZc (ORCPT + 16 others); Sat, 17 Apr 2021 09:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231772AbhDQNZb (ORCPT ); Sat, 17 Apr 2021 09:25:31 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F149C061756 for ; Sat, 17 Apr 2021 06:25:05 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id e13so21845029qkl.6 for ; Sat, 17 Apr 2021 06:25:05 -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:mime-version :content-transfer-encoding; bh=BZm00Xc0p/94j6srLK1r3tkA4U5Cw6X9E6ocH2iLzlI=; b=CWt1fRfAKh485gQO18embcRiO4WSeHn9EhQgKBOQ5P9ntIKFLrbpsVl3Vw2Punfh6t /gaSBJLXqDoPzr6+GELua6LGj+syhSzbZsw6grMRstR73o86A88d6gfuLJ5lrnj6hm3n Sqs7O4mNMkLOreVy7Er7Hc0deqdoX7C14ewhFAbDiZUoNfRJ4VHC/1SFXcYkxvWdVjoX iKPdHuS0FlZ/c4CUpiIMbXJLJSvesp9n2F+rsei8b75YT7vraOWEmdm0qAGmtbGE93B1 sNCtCKV4eORY3LscHZ6822iEcXdQD9KlFarfRYoBOyQ8yzjC1NdRnuP8kye7v5MYspUU 75Pg== 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=BZm00Xc0p/94j6srLK1r3tkA4U5Cw6X9E6ocH2iLzlI=; b=djDg2/mwZ33oVSLhbSsQ6VQY9pI5ocQYc1Hfli/sYisGRenGNgz2gCkPit5KeSzmgA hyTdYfQgYIIIIjsBTi6peOpNQVAVKVFtxXDusbgqWAKQ8M3uEr2BggpMkUX/cPsiJhBp QAGq+9C1X3mdcrgQ/qK4JrIDSgg0IZEiLgi2BcTbxBU8kge9HYSm17HfobRTEyw4sSBh +s8bzk9WCgpQIZimfL6YdtAiGml+kFyzQv2OFzz0a48uMZ2iqH0BwjvRvxckRYMfgS1e yWOlCTa9xq0yWy2hc4iB8wazA+ck8smJicKh0eCzSZ6+WnmT58N3ipuyGxlzfontSKSj urvA== X-Gm-Message-State: AOAM530CiUnENNoNCp/cGR0IIFN7YCfoh3KbioSGV7wAlwZWS4/quqI0 nXpHQRGXmfAeFaHTAfi4rIV1YA== X-Received: by 2002:a05:620a:444f:: with SMTP id w15mr3829536qkp.437.1618665904339; Sat, 17 Apr 2021 06:25:04 -0700 (PDT) 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 o25sm1988327qtl.37.2021.04.17.06.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Apr 2021 06:25:03 -0700 (PDT) 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, linux-arm-msm@vger.kernel.org Subject: [Patch v2 0/7] Add support for AEAD algorithms in Qualcomm Crypto Engine driver Date: Sat, 17 Apr 2021 09:24:56 -0400 Message-Id: <20210417132503.1401128-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-arm-msm@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 patch series has been tested with in kernel crypto testing module tcrypt.ko with fuzz tests enabled as well. 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 | 841 ++++++++++++++++++++++++++++++++++++ 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, 1104 insertions(+), 20 deletions(-) create mode 100644 drivers/crypto/qce/aead.c create mode 100644 drivers/crypto/qce/aead.h -- 2.25.1