From patchwork Sat Jan 28 23:25:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92774 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp847287qgi; Sat, 28 Jan 2017 15:26:31 -0800 (PST) X-Received: by 10.99.44.138 with SMTP id s132mr16782601pgs.88.1485645991438; Sat, 28 Jan 2017 15:26:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d65si8383902pfl.73.2017.01.28.15.26.31; Sat, 28 Jan 2017 15:26:31 -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 S1752695AbdA1X0F (ORCPT + 1 other); Sat, 28 Jan 2017 18:26:05 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38057 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbdA1X0C (ORCPT ); Sat, 28 Jan 2017 18:26:02 -0500 Received: by mail-wm0-f48.google.com with SMTP id r126so35379319wmr.1 for ; Sat, 28 Jan 2017 15:26:01 -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=iX4RgwAwSImbXM2bgXM5ECffN/JuvHQEoDyaWSb9ZnkSvbbmjVYMJUMohA2+n70SRX 4dt7o364y8lxDBxbMv0RUSnMe/1K+m2UH1TfNFa/I1v9CZmX38XleBxIRjEjsFqrPBXs lmGfGqoZALALbh6Z/MSzR8QCSQcsoQxDdwp2w= 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=KC98O4+iK+l2RoOrAG1jOvFK09PW7t37SW/91OajBtO8KnhaV8tf5XZL/lIvczNzzm fcTbg4hvj9ONWDTWtDrjG8Q1x1sG0/Sa9a+Bk0OZoejqyl8/eYVdginYiFfUuolXZuDz 6uEH02GEipXM15KaL8mVMJhwM/bdNpk8Oo6X6o7ZMv+jf8ckW0lWGX2qz4SMoKGNXHQ7 hLUtLtBSaUolvWoM42SaG8tarCn9ueEnxa69Jq3H2ndYRRrdbH+zncYGuaWNPIFqQeaf d09PvuoeXvZ0YVa4Bet0DrJF9cVRn3OYw6/o3CDKDq/48HCaaHowCg2UvVtZ8n40lwrZ yGKQ== X-Gm-Message-State: AIkVDXKbARihSOidN/UYGETwWQ9eG+769UH6E9cRPwWveu1MTeig/mUMsLZLvLykw5M32MTY X-Received: by 10.223.176.210 with SMTP id j18mr14926485wra.8.1485645960378; Sat, 28 Jan 2017 15:26:00 -0800 (PST) Received: from localhost.localdomain ([160.163.215.165]) by smtp.gmail.com with ESMTPSA id 33sm14992064wrd.34.2017.01.28.15.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jan 2017 15:25:59 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, herbert@gondor.apana.org.au, Ard Biesheuvel Subject: [PATCH v3 04/10] crypto: arm64/aes-ce-ccm - remove cra_alignmask Date: Sat, 28 Jan 2017 23:25:33 +0000 Message-Id: <1485645939-17126-5-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485645939-17126-1-git-send-email-ard.biesheuvel@linaro.org> References: <1485645939-17126-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,