From patchwork Thu Jan 24 16:33:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 156498 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2164957jaa; Thu, 24 Jan 2019 08:33:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5rS1W2MWv/x//sdn1rGwF1asm37z6SNV+8FLiAFofnLn9K5vt6hEpdwE7y90+1iQVR9XkY X-Received: by 2002:a62:9419:: with SMTP id m25mr7452858pfe.147.1548347634307; Thu, 24 Jan 2019 08:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548347634; cv=none; d=google.com; s=arc-20160816; b=S9PlGX8aQnv689kINocUKfb7IwET/twsn8OUg/9I16oyDOc8Qm90WPUt2EZfHszuBq pxPiYB5+Tj5vhi96nosU4jcddGD1kN9JkoDeoKxqxpGVeH+gPfYuYepMTdTBVE4L+KuD n/mFk9zWDSKO73JzV1301oVcFBMX05OuQYzgBa6qkGe5/61sXZgM3D4S8dgohlXJw03z 3bdkL8uWn1eX8Zh8OHa2JRBe2coOvVXO8KG2DvqlRFRNAIxR3uP7L9Bfrzn65fnylpId KiAQnV4vgYtLQ8BUyO73KvLIvFT7AjxV91WKVUdjTMHuxPD5vV21bQMIiaxFH0Tikvwn iBgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x5BNuF/8zRq0d8UI2WInTAD27ZctbQWpU8s33LOAnUk=; b=TeoECwy188I5mIwdxC7gSYJT5rXpQTGNdi8C97NDCG0LV2+PgbeIRRdV8Dd2u7bTrW v2LOhppssLnTeaeLgTs4EFgvOrvJUM/914Wp2alSBL2iAeNBNUrcENvjLBTJ9p2w84pk hsc6aN28T7bolQ2GUR4nmmkWOsv4BxNsIRXlxQ4Dqsleyy+zXh6iuWh63uqwukrbiV0Z BdR4pjylP1hNRztTz08ydBFQqKab4rtnhyi41oLNfWhsgLY7VplXRFiouVkpNXcw4U1K eQGlyKrmq7doj5PsFDhKXBT57hUyxVKq+1dzf1hx8DfzrbkwjGYJTQXYQeRYoXMhU+b/ 9E/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kY2soCLt; 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 c5si20261952pgq.434.2019.01.24.08.33.54; Thu, 24 Jan 2019 08:33:54 -0800 (PST) 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=kY2soCLt; 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 S1727690AbfAXQdx (ORCPT + 3 others); Thu, 24 Jan 2019 11:33:53 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37248 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbfAXQdx (ORCPT ); Thu, 24 Jan 2019 11:33:53 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so7187908wrt.4 for ; Thu, 24 Jan 2019 08:33:52 -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=x5BNuF/8zRq0d8UI2WInTAD27ZctbQWpU8s33LOAnUk=; b=kY2soCLt1iCO/T3lj6QGsy3ZIZur7KCF+0YfRV3cayZTJY/ooIMBttoQHrbCE9MsbA 5siHHvF3IDHwcPOIlnbgVCmyVRzXdob1b5SChMixleDwR4/LbGa2nR3m1CdlyMuafXEj KElqxbQRLDn8tXFh/SzEuK0G6jcK8xYk76Hz8= 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=x5BNuF/8zRq0d8UI2WInTAD27ZctbQWpU8s33LOAnUk=; b=W+JYnn7WBP15uIDealQe0TG8eBnRFentFioHEHFm/OR4bn1BfGm+34tTfUxHFvGNP1 UYh/ph/jC6QgorCLpK/Z6Lt/l5m2l8UlZ37sJYE2K6usu1YSDZiDWwIUGfhzoBAZ9shF AvfjKA2rge8WifLozcFPiVWiwyVKt5btsGHzSMqlLdh5nh/TtPVKlLydyPLsJ6dPjYdJ Mu9wtwOp5EF0DTvBpzBxzhE5y87pONydcmLgsWQw2EIuSlmkjGhKetxarpar4m2yas3D KldY4MIQY5eqinBEKFfjZy1QqYDfywjRJ2GnGqvNlLvXB3VMoKhnT9UH3QCiISrs16Zr lrWA== X-Gm-Message-State: AJcUukeN3RpSPYtQNOh6dg6pUmYoife92LQ4iR4iow90iJ+cS/xrUT+8 4+dFIxW+ZXhgBiM0oEhbAFE+83hSLRdA/A== X-Received: by 2002:adf:82a4:: with SMTP id 33mr7433179wrc.252.1548347631045; Thu, 24 Jan 2019 08:33:51 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id t12sm99629069wrr.65.2019.01.24.08.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 08:33:50 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, ebiggers@kernel.org, Ard Biesheuvel Subject: [PATCH 0/3] crypto: arm64/aes-ccm - various bug fixes Date: Thu, 24 Jan 2019 17:33:44 +0100 Message-Id: <20190124163347.12653-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix a couple of bugs found by Eric's new testing code, and another issue found by inspection. Ard Biesheuvel (3): crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine crypto: arm64/aes-ccm - don't use an atomic walk needlessly arch/arm64/crypto/aes-ce-ccm-core.S | 5 +++-- arch/arm64/crypto/aes-ce-ccm-glue.c | 8 +++----- 2 files changed, 6 insertions(+), 7 deletions(-) -- 2.20.1 Reviewed-by: Eric Biggers