From patchwork Mon Jan 23 14:05:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92217 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1233384obz; Mon, 23 Jan 2017 06:05:42 -0800 (PST) X-Received: by 10.99.137.199 with SMTP id v190mr30635873pgd.120.1485180342465; Mon, 23 Jan 2017 06:05:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l36si15767527plg.145.2017.01.23.06.05.42; Mon, 23 Jan 2017 06:05:42 -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 S1751234AbdAWOFl (ORCPT + 1 other); Mon, 23 Jan 2017 09:05:41 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34925 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbdAWOFl (ORCPT ); Mon, 23 Jan 2017 09:05:41 -0500 Received: by mail-wm0-f54.google.com with SMTP id r126so134568044wmr.0 for ; Mon, 23 Jan 2017 06:05:40 -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=QJ1hFS1riGlSaav9bynYkA8Yf/qv+08EtHnt+mmKR8YBBH7iZObWtJF8qiEegjBShH q1UwLtnMDKcI8oCwKtsGt8kC6CcTJIbb2565A0lWCIcL/N+Au+YXBSrd9r6pjnyXTPmg fVGNXc2ED8NKf6tuK7XWFG8Olv+Se3Oh15vUY= 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=oOeZcf20MZNelJqMistOzoJDUKR2SOobtmGWBWoItkIBR879DR5ZJaRqRCFD5wtkOQ YbgG6fMLJlCQNEqLuZ7nR7pwv2SpQcnEBsFs3rgBkZvXOmxwTx0hw4kZb1SMAGiv8x6G p9fayjz00BIUwcT5EocGd5JjweNBmatDUBue4UP/s3te77PtXWZRUf8rJ6Ji7edPD8HB qxcKbewBV3MkcjnvgVpFOCMOORKUeS5Qlv0Vta8eUGYbeIOXI8OJrEUua4nJGrb6wUEw liCfgazhOIfb7FA6Wp1Yvt1xSRMPYon6WfRX9RA7EqZXKvIXZzl2bC2d163nFEN9lTzz pzig== X-Gm-Message-State: AIkVDXIEjsmcpzW35unOS6BjatUKmQjkg2yaddRuUJdUxicGgnNB+u1J6FSuBuznstc+1lk0 X-Received: by 10.28.136.13 with SMTP id k13mr14575803wmd.94.1485180339513; Mon, 23 Jan 2017 06:05:39 -0800 (PST) Received: from localhost.localdomain ([160.160.111.139]) by smtp.gmail.com with ESMTPSA id y65sm21319790wmb.5.2017.01.23.06.05.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 06:05:38 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: Ard Biesheuvel Subject: [PATCH v2 04/10] crypto: arm64/aes-ce-ccm - remove cra_alignmask Date: Mon, 23 Jan 2017 14:05:20 +0000 Message-Id: <1485180326-25612-5-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485180326-25612-1-git-send-email-ard.biesheuvel@linaro.org> References: <1485180326-25612-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,