From patchwork Sat Jan 28 23:25:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92771 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp847283qgi; Sat, 28 Jan 2017 15:26:31 -0800 (PST) X-Received: by 10.99.36.3 with SMTP id k3mr16762254pgk.136.1485645990963; Sat, 28 Jan 2017 15:26:30 -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.30; Sat, 28 Jan 2017 15:26:30 -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 S1752007AbdA1X0M (ORCPT + 1 other); Sat, 28 Jan 2017 18:26:12 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37252 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752700AbdA1X0G (ORCPT ); Sat, 28 Jan 2017 18:26:06 -0500 Received: by mail-wm0-f49.google.com with SMTP id d140so1638768wmd.0 for ; Sat, 28 Jan 2017 15:26:05 -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=zfpd1eO7xxGzNokheRELTOmW0w9HWUScNlNa89gvn3Y=; b=StuQ9i1xDlO8ZfdOX97Si5VN797LA2wqjoR+dTmWG0xhoefnC+3a2m71q2MDF3cUGh G6jcThScZnGO9AQZ7djmoUh+E045/qUhpWPAEp62dc8u3vqwTZTxWWLshWAgxafS9VpU xJ89qohepTLWvmKJjRMNb9eMyf4L9P1wGbtRI= 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=zfpd1eO7xxGzNokheRELTOmW0w9HWUScNlNa89gvn3Y=; b=KzgnW/cWkKr4yPehfGLNuOQaavGbRv0+9o+0wXelsCvW+dmf7ZDdEwebZKgui50Zh6 zGaPCvR9pJ906aGFVQ+i/8Nxx+cmc+GXRx1dAphinRhhc7Cjb0hCXZeV2W6vEngxe3xc HUnNgHjctVhpNO0wUXNe39opKlHuvt3l/VNPHWaw+KRtXhYAW3AE773z8d55rxHtqtGk R2OV0HpmJW4rdmQ3qNmBk2rWVYfVLZaPZplODFrLjKT6wQfxBmq/DBen5FjDyAD4sYJE /LOp6wmR/8oaSHx9rNKGBzmqKQrnWq/vNT/r3grJItb6jkxUhj+D/GjbY3oEqI/yGQAC Suhg== X-Gm-Message-State: AIkVDXK7yWzJki77AcfQuSv90v9K/YnGyX739HAlUp5EJwq1pSz0PXk2z0ltoUNj4NEJApbP X-Received: by 10.223.164.85 with SMTP id e21mr14512767wra.111.1485645964679; Sat, 28 Jan 2017 15:26:04 -0800 (PST) Received: from localhost.localdomain ([160.163.215.165]) by smtp.gmail.com with ESMTPSA id 33sm14992064wrd.34.2017.01.28.15.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jan 2017 15:26:03 -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 06/10] crypto: arm64/chacha20 - remove cra_alignmask Date: Sat, 28 Jan 2017 23:25:35 +0000 Message-Id: <1485645939-17126-7-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/chacha20-neon-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/chacha20-neon-glue.c b/arch/arm64/crypto/chacha20-neon-glue.c index a7f2337d46cf..a7cd575ea223 100644 --- a/arch/arm64/crypto/chacha20-neon-glue.c +++ b/arch/arm64/crypto/chacha20-neon-glue.c @@ -93,7 +93,6 @@ static struct skcipher_alg alg = { .base.cra_priority = 300, .base.cra_blocksize = 1, .base.cra_ctxsize = sizeof(struct chacha20_ctx), - .base.cra_alignmask = 1, .base.cra_module = THIS_MODULE, .min_keysize = CHACHA20_KEY_SIZE,