From patchwork Mon Jan 23 14:05:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92219 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1233414obz; Mon, 23 Jan 2017 06:05:45 -0800 (PST) X-Received: by 10.98.198.199 with SMTP id x68mr32240496pfk.87.1485180345418; Mon, 23 Jan 2017 06:05:45 -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.45; Mon, 23 Jan 2017 06:05:45 -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 S1751156AbdAWOFo (ORCPT + 1 other); Mon, 23 Jan 2017 09:05:44 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35971 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbdAWOFo (ORCPT ); Mon, 23 Jan 2017 09:05:44 -0500 Received: by mail-wm0-f44.google.com with SMTP id c85so134181823wmi.1 for ; Mon, 23 Jan 2017 06:05:43 -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=bDNP1+c5TDCCAUUDx3tU9Vs9kXg2qLo6SacXuYr0FnZB24bDETU+4NZa32uRQN6mPZ SUzgTCd2oBtdx5Rc4OHGQ+oXBkSfQqYUM4M85GCAhgkglETwrpNFNYq1XvS1+Jv9hf9U iaTohbBCCOiJViL0EYDNpQ1tTUmhvsgtxRmpY= 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=ii/nK3FGFCgJjl4m0j0GQ7P6cO6X8sWh5FYOVdH4GfjcpWW27a6/7UpIa3igiRkKLW WE2xVLtQionwlmmKKAvUXNwvvnyqMNLjFubm83OkokcC4h7zYCu79cvjY46ISpHzb8ta WJX3L7PfP9zNjAaloX2tN024YiFdTkNE/6+5fRBVFFFE2jjF2TxPPegS6MWx+USRrfT5 ntDtc3VF4Ojt8JGCr6PhB3TIJbDAOle78shDbKcAiXAaGqHxqh7XlQTtQBcjhMKeZhqN mK3oadR0TqUO6igSULHeu6cl9URsI/bGahNlC0BB5GyYt+6eH+Xz/gNfqaE3fCbmSTGF k6nw== X-Gm-Message-State: AIkVDXIlBU7EPFKW2EfPEXQVATDYhxKINraykJF4fmkusIei1CBgucNfxMa/65JP/nHC/crn X-Received: by 10.28.4.216 with SMTP id 207mr13146805wme.45.1485180342837; Mon, 23 Jan 2017 06:05:42 -0800 (PST) Received: from localhost.localdomain ([160.160.111.139]) by smtp.gmail.com with ESMTPSA id y65sm21319790wmb.5.2017.01.23.06.05.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 06:05:42 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: Ard Biesheuvel Subject: [PATCH v2 06/10] crypto: arm64/chacha20 - remove cra_alignmask Date: Mon, 23 Jan 2017 14:05:22 +0000 Message-Id: <1485180326-25612-7-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/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,