Message ID | 20210429150707.3168383-2-thara.gopinath@linaro.org |
---|---|
State | Accepted |
Commit | a9ca8eacb3204208863b9175baae8ac7ee6b2a64 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1668043jao; Thu, 29 Apr 2021 08:07:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXnI7/toOcwLjRoF7aEjmBgRiBkA1Dv0DAhKMdFEt3pvyiSySW1eFHNfrqn/gdMDOI7Y5g X-Received: by 2002:a17:906:c836:: with SMTP id dd22mr261102ejb.427.1619708838355; Thu, 29 Apr 2021 08:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619708838; cv=none; d=google.com; s=arc-20160816; b=IHwuHlyj1ttbtex+D1IW4Mhs+D3iGvK23ZZ5GBhNgRrN8Y7DhSW1mj/mj/8N8r/3jY OW5XtJQE2pXPfLOY3bIr+LcogMm5y0swfqrxeKE/9MubFdNvuKfQhDC2EBfANhDEULmo KS2GT0Dvl9g1/nWB8zgzWGoOuxMU+/GGixqhti3fseuXXl6XyYzMmvEz6GHK5midmx5p wYIaPpb6/Xkpei+VCLBVfGIx9wI8ivCOghB9Yx7nDlHGXVhnYHXtb056sNQ259vvQz3i 41E2psC4WR09Vh8XilQiy0G5vPuMEKLuPx77cafeofNi8v2iUOjFPH60DAGMr4Tgcdg7 mM5w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FUSrZlERR89hZzHNyP4QRMbV2CihmITrCmz3k1LlYk4=; b=ghi1/5bKcPurQoJBV5Xx4ulv5C7tkjYBfGoeRdxPZj6oAjz0TnE9LW3NkWpxxCMyrD nJwfcYSA8QoQvn9P6s9iErL6Bf5WDw+HM8j1JkI1eH6zIFaAkTAjdJPA3nH49I2+kNjF quDyHL5P9yDINaXllU4X5z3LbY+bS2WfcEVZysWyufSLi4CdL0tG/H2xaF4iaELMUq+J l3Yf8Ayn/ZcxzgQ2wildl6Gbx1UnPE2S10YFZzaIky3iH5OcTN2Xc71vzJ+oz0Iy56WZ CNTbpJLFTQy7W9FwL4jgelLZ8dfgrgLRVSo9OR74XowYYPzLwSjOM6JyIUYvdEIGC6O8 vD2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHnQJNbV; 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: <linux-arm-msm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si3443068ede.27.2021.04.29.08.07.18; Thu, 29 Apr 2021 08:07:18 -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=MHnQJNbV; 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 S240635AbhD2PIC (ORCPT <rfc822;naresh.kamboju@linaro.org> + 17 others); Thu, 29 Apr 2021 11:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240592AbhD2PH5 (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Thu, 29 Apr 2021 11:07:57 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04F70C06138E for <linux-arm-msm@vger.kernel.org>; Thu, 29 Apr 2021 08:07:11 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id j19so9039107qtx.13 for <linux-arm-msm@vger.kernel.org>; Thu, 29 Apr 2021 08:07:10 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=FUSrZlERR89hZzHNyP4QRMbV2CihmITrCmz3k1LlYk4=; b=MHnQJNbVziLM0NPBDtmnwCmOJ2FoMf3Ip14Lec6yiW9Uw6wXJuecmb+TjAI0QTEitc WNpma+n25xPeN4F8PqiRZsQ6R4aIVkCH8d6gs9+6AfMPjY8703EY42h09Hbts2W5+UaI 7bSZMJ1iZtva1r4TQEM9PtgSONILCgKOb5B2IOoR9Q4vGpzBW04aewKE2JlYZG1wp/Q8 IBVIhhlfHUPc+UsCWZMk2wz3B+9/8qML3QPrJzw2tvPHDQ8XFUWsMVUqYSqeFE6ztPPt nM80jMCXcIZ/xuB/Q6/o3HFuQBnSqLdiOHnlJTv+/Q5Goxb65N+HCS6tj7RP2wi/KOl9 LU6Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FUSrZlERR89hZzHNyP4QRMbV2CihmITrCmz3k1LlYk4=; b=VsBlU1JgsaP5G+nHjBXQcBjOJxAoUJ/539YxnOCPLZKblsCEV5ATTUYh2laqEC6DI0 26M0o2XF1A4+drO2FIr0yxuska1AKYWKJtOenw2OoZLXwxy9dtNZM3SkpRzvtePSp6bo f2S5ZCdqepxPnd6ubHcjGvIiXbOxq9ecGnRSnLQ+s97+B4Rucj2rIUa51cVCG5+hogr9 d7bI07fPXHGW9zy9/S2KijYoFem0Ym7YDu4nWkeKd4vKEzqXKR4pWKoW7FKkTdFds9PD lhiqrlMM0dOcOk8XnDW6nBzAbD4ZRM8JZYEoAGp28X6R+6dnu1G1oHX5S6CQzUlZYYsm d+og== X-Gm-Message-State: AOAM533BiLcr+Uqf9pnBshP8vkzVf/aXk8p8OeqqvyMUIxHTdb0QHr8V 3U56D6XRGDorYLHxzAiyFsuFcQ== X-Received: by 2002:ac8:7344:: with SMTP id q4mr22981494qtp.278.1619708829856; Thu, 29 Apr 2021 08:07:09 -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 j191sm2223822qke.131.2021.04.29.08.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 08:07:09 -0700 (PDT) From: Thara Gopinath <thara.gopinath@linaro.org> 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 v4 1/7] crypto: qce: common: Add MAC failed error checking Date: Thu, 29 Apr 2021 11:07:01 -0400 Message-Id: <20210429150707.3168383-2-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210429150707.3168383-1-thara.gopinath@linaro.org> References: <20210429150707.3168383-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
Add support for AEAD algorithms in Qualcomm Crypto Engine driver
|
expand
|
diff --git a/drivers/crypto/qce/common.c b/drivers/crypto/qce/common.c index dceb9579d87a..dd76175d5c62 100644 --- a/drivers/crypto/qce/common.c +++ b/drivers/crypto/qce/common.c @@ -419,6 +419,8 @@ int qce_check_status(struct qce_device *qce, u32 *status) */ if (*status & STATUS_ERRORS || !(*status & BIT(OPERATION_DONE_SHIFT))) ret = -ENXIO; + else if (*status & BIT(MAC_FAILED_SHIFT)) + ret = -EBADMSG; return ret; }