From patchwork Tue Jan 17 15:22:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 91676 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp543269qgi; Tue, 17 Jan 2017 07:24:01 -0800 (PST) X-Received: by 10.84.231.9 with SMTP id f9mr30897958plk.28.1484666641082; Tue, 17 Jan 2017 07:24:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si25201758pgf.220.2017.01.17.07.24.00; Tue, 17 Jan 2017 07:24:01 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750803AbdAQPX5 (ORCPT + 1 other); Tue, 17 Jan 2017 10:23:57 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35194 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbdAQPX4 (ORCPT ); Tue, 17 Jan 2017 10:23:56 -0500 Received: by mail-wm0-f54.google.com with SMTP id r126so205365367wmr.0 for ; Tue, 17 Jan 2017 07:22:56 -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:in-reply-to:references; bh=uEavdoflWkEgxBCfHtZRMITUTt3rHQF+vKAmVwYFXzM=; b=VcPULplGtNBNwCEWZ7LE54azPdlBMhpy+Nh+dT15QB+gt/I9/UI+xfXZ7j2ezsflZw QhZRuW0ZR8HTSPOh+Dbqr0aLOkatFQHeSCTGCkurLEFw7V1TMHTDFnRlkyYMQCexSQnR h5gFNFEO+6UAqlhBOdvf/nwra3cPeK+k87Es4= 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; bh=uEavdoflWkEgxBCfHtZRMITUTt3rHQF+vKAmVwYFXzM=; b=Sw3lvqfGzSqrq2m1snVcV8+rG/8haWVSoLPaTCx7kvRDtER9chPk0iHXlXu3IDNigL JkCa3msHQ6tAL1+q90yTkZWZJDgbOlhogN88QW2W67btA8Mv2o9lAIEzajfiITJzzjq/ nMZsvrmeTVorL+oICIfU3hSF13efpk1IztxWgJUF1qDuj1SFd5XrOnlcYTYRN/iKU5Kc TUR2saHGgSQ7xmAqScl+19ikiubn+pB7YqJewaDeL01rMYE/AX+8G6ZxbkaWinT2XfZc 2E6aaQOb511P04vcM6ol3eMOLMAJzdyJd/rgrRadLgBbR2gobR1ik3Zk1ati2YuIVjHS BwcA== X-Gm-Message-State: AIkVDXJGoocx9xXsvxkqbGJ/LLV9ZYhgGHFG+1Sv0Km5S6go/tI/8NbQUwqi/VCJ0SKLx2lx X-Received: by 10.28.107.77 with SMTP id g74mr15812205wmc.109.1484666576089; Tue, 17 Jan 2017 07:22:56 -0800 (PST) Received: from localhost.localdomain ([160.167.203.25]) by smtp.gmail.com with ESMTPSA id y127sm37590359wmg.12.2017.01.17.07.22.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 07:22:55 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Subject: [PATCH 04/10] crypto: arm64/aes-ce-ccm - remove cra_alignmask Date: Tue, 17 Jan 2017 15:22:31 +0000 Message-Id: <1484666557-31458-5-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484666557-31458-1-git-send-email-ard.biesheuvel@linaro.org> References: <1484666557-31458-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Remove the unnecessary alignmask: it is much more efficient to deal with the misalignment in the core algorithm than relying on the crypto API to copy the data to a suitably aligned buffer. Signed-off-by: Ard Biesheuvel --- arch/arm64/crypto/aes-ce-ccm-glue.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c b/arch/arm64/crypto/aes-ce-ccm-glue.c index cc5515dac74a..6a7dbc7c83a6 100644 --- a/arch/arm64/crypto/aes-ce-ccm-glue.c +++ b/arch/arm64/crypto/aes-ce-ccm-glue.c @@ -258,7 +258,6 @@ static struct aead_alg ccm_aes_alg = { .cra_priority = 300, .cra_blocksize = 1, .cra_ctxsize = sizeof(struct crypto_aes_ctx), - .cra_alignmask = 7, .cra_module = THIS_MODULE, }, .ivsize = AES_BLOCK_SIZE,