From patchwork Tue Apr 20 03:35:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 424541 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6d12:0:0:0:0 with SMTP id m18csp3272389ejr; Mon, 19 Apr 2021 20:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyb7Z1/fdehyoumJELk1FCEA+5UyapNVH5eTpWZKNy1mxC0Cn8ipAUxanXvsYqctYzMzri X-Received: by 2002:a50:d087:: with SMTP id v7mr28368918edd.345.1618889775042; Mon, 19 Apr 2021 20:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618889775; cv=none; d=google.com; s=arc-20160816; b=BWU1Ue0AhYd8s2tE7S9FNd6RAL/8Ue+c0qqVVk57a5+b1SG+CiNfFAItHKmuc3ogwG b/O4WlvAWF6zUxPnyQApaqIClBO4Pxm0u3v8P6B9OgLnSMIV2yH+NQ0rke604YwchW0G LEpT1hTqkkZ+/N0DGFDQl3sRLk2AtTd/UGdtXeO41uKaA8UBRXs5m/XIZZwG+uz9VDkI BaYEUW8cN6IblrtI7Mj4jwQfT2QPVfxBpBZ9aHQTw0phRydzcZhEvT0yNvvGauQvZcaB qO4VACXXDyLCivmw2pxcs9aP6bYNDKJ9DaFG1cMJgpJ/3QYI1bQQ7fzGPjgG6WDRXsT7 sw9Q== 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=PJriSY/3BoO1fHsVgHab2OGWTgIWKz/XuakYolqJtHg=; b=iko/Brnm3W2/JIbl2mhRfkqBY/aBcrcNDyn0c+gOE3Iz2VfYrHibOkXLB/G1LZNMv/ JefQly2atHPEgPSb+VrLl9CAgh71aNNzV2MsWqYIqQxWSfjOTjYxmjJk7H2Dd79Vb9jk 3bAM5u8Ja+Y7vAWfnPhZ74Nfb5cYm+KRe2wBdEKd1NxPBIqa6kmoiiqRdEWhfUNjCiH3 RKXSbACs6YVhj0UTWqLZqpMcYXs9+KSLSNNXCxlgqnGSbHhPLj9G0gYeZ7eTfoyEP29U jkWHjK1i0GRL5a50JO7LiNN9y6ft+Ud/JAyFZ+m4txVkAvuiKTS85Esve6pTlDhqtVR9 ommg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E0hvOm6e; 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 q19si13939060ejd.250.2021.04.19.20.36.14; Mon, 19 Apr 2021 20:36:15 -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=E0hvOm6e; 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 S229579AbhDTDgf (ORCPT + 16 others); Mon, 19 Apr 2021 23:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhDTDge (ORCPT ); Mon, 19 Apr 2021 23:36:34 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414BAC06138A for ; Mon, 19 Apr 2021 20:36:04 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id dp18so13347717qvb.5 for ; Mon, 19 Apr 2021 20:36:04 -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=PJriSY/3BoO1fHsVgHab2OGWTgIWKz/XuakYolqJtHg=; b=E0hvOm6eMmyEZ2M3MU2QsiHj0zTZy4NxvzMJ4BuGjCki4mRcIXk7NPuyXjMnsPdPAA T8mmB/dCDnnKTJo7waaGCoouYsM+rEdpHxjRg624Hrm+KrU319G2jfKtg5Zsn6t+JKUE 1+p5ccwYfSWxeg05DUjA+Gh9Kiz9CiRLj1/KaNL+sHK5ixXA8oKcbNnZGGOkuN/dD7UA yNG89UnljPOlKQwcffDInPUHqBmauqiT1uEU/J7gopgaRVGL+aXAYaB25y0h6rpe4OLF j3uEo6c7Cg0EuX8EaUT51G2iok5lnUA0gkTf3S0kDpXlE9nutvI/49+aMCKwcWh+LObV a99w== 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=PJriSY/3BoO1fHsVgHab2OGWTgIWKz/XuakYolqJtHg=; b=dDPn9M+oSkaj8gVIF8rspY2PEFG+4XwrW7RkolzDgk2Mv8KGb4z81RYvuj/10HWMmm x6XDa+E2dBimH9+McqTVxdL3UTQCyK9DPpRkDvZofnNlJlHzq8zQKstZYsOuJycUo5ub SzBgAxxBWDqXM0ij2OSeLRW26QU62bsZh32VOCDUcSeu+v6LfZLa5lI1qZTkXfxoxlVN fNegMlJwKv5J87t7RI+hnSXC76l39aqkDOELk7//zl+CZhjJm+8gt2uMNG7ufePdUU8s bJP3UrFuLXG9vCVYnF/+bmrV+lTLRLph5LIWnTpyiULhlawzXf/06NVjs0u+2GAoeh+7 EGEQ== X-Gm-Message-State: AOAM531XNf8YxK+gzX1gJXFcKUugZmSAtVsp/TjDPWDoHX8ixZ56nFx3 4h+uGRLNDKu3ZXgldohnX7nUbXHpZEY/fA== X-Received: by 2002:a0c:eb06:: with SMTP id j6mr24696769qvp.10.1618889763374; Mon, 19 Apr 2021 20:36:03 -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 b8sm3562643qka.117.2021.04.19.20.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 20:36:02 -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 v3 0/7] Add support for AEAD algorithms in Qualcomm Crypto Engine driver Date: Mon, 19 Apr 2021 23:35:55 -0400 Message-Id: <20210420033602.1729947-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 | 196 ++++++++- drivers/crypto/qce/common.h | 9 +- drivers/crypto/qce/core.c | 4 + 7 files changed, 1102 insertions(+), 20 deletions(-) create mode 100644 drivers/crypto/qce/aead.c create mode 100644 drivers/crypto/qce/aead.h -- 2.25.1