From patchwork Mon Aug 4 10:34:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 4669461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1E55EC033A for ; Mon, 4 Aug 2014 10:38:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4847A201DE for ; Mon, 4 Aug 2014 10:38:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC725201CD for ; Mon, 4 Aug 2014 10:38:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XEFbi-00020S-5J; Mon, 04 Aug 2014 10:35:10 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XEFba-0000mN-TR for linux-arm-kernel@lists.infradead.org; Mon, 04 Aug 2014 10:35:05 +0000 Received: by mail-wg0-f52.google.com with SMTP id a1so7374640wgh.11 for ; Mon, 04 Aug 2014 03:34:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wyjtdvUndI7PU9UFmGa6u9D/BtHI34Xl6bStGleqtBY=; b=ZrwgJa8sTfMEzOK8zzbccKjFfrBiYwMlbd8gBrpS/AgJLsISiuKrbCpj9sTstbPgqP vZ27EY+pZlBNnLWCMrU5mbFE1daEGIVFkONCpxiI+KZNHyIWAQ6cvgR+KgPlcZle02IP OOdBbJz6J7ixp2a2kA/0W38rJd1GBmFi4ewnLrqAvvZp7PyVHiyr0RfwOR+zFCwN7RJu 9oZA62i1t7H2Z0aWZfWYQyOrCdjXoz5xGt4PbaShDxb0ifgy13WxTUJDEKMv840w0rh0 VqvPMAA/43yXpsSAUzKZ217jTArUnQR19xEezoW4Pp5RsqC0TilWyctEk8+JjF3d6YfS EdjQ== X-Gm-Message-State: ALoCoQlnrFv9eab0M43bBJArF6qh57F1ZjdeQ1GCQATaxwGBrmRVOTF+lzvgxDv79mY3daSsAmN5 X-Received: by 10.180.107.170 with SMTP id hd10mr28343613wib.77.1407148477673; Mon, 04 Aug 2014 03:34:37 -0700 (PDT) Received: from ards-macbook-pro.local ([188.252.229.85]) by mx.google.com with ESMTPSA id di7sm42549064wjb.34.2014.08.04.03.34.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 03:34:36 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, jussi.kivilinna@iki.fi Subject: [PATCH 2/2] ARM: crypto: enable NEON SHA-384/SHA-512 for big endian Date: Mon, 4 Aug 2014 12:34:29 +0200 Message-Id: <1407148469-26190-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1407148469-26190-1-git-send-email-ard.biesheuvel@linaro.org> References: <1407148469-26190-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140804_033503_120035_EBFDBE82 X-CRM114-Status: GOOD ( 10.39 ) X-Spam-Score: -0.7 (/) Cc: Ard Biesheuvel , linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SHA-512 NEON works just fine under big endian, so remove the Kconfig condition preventing it from being selected if CONFIG_CPU_BIG_ENDIAN is set. Signed-off-by: Ard Biesheuvel --- crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index deef2a4b6559..d560c66125bd 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -602,7 +602,7 @@ config CRYPTO_SHA512_SPARC64 config CRYPTO_SHA512_ARM_NEON tristate "SHA384 and SHA512 digest algorithm (ARM NEON)" - depends on ARM && KERNEL_MODE_NEON && !CPU_BIG_ENDIAN + depends on ARM && KERNEL_MODE_NEON select CRYPTO_SHA512 select CRYPTO_HASH help