From patchwork Sat Jan 24 21:11:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Stockhausen X-Patchwork-Id: 432441 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DE3331402C3 for ; Sun, 25 Jan 2015 08:13:59 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id B8A7C1A1437 for ; Sun, 25 Jan 2015 08:13:59 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mailrelay.collogia.de (mailrelay.collogia.de [194.8.207.98]) by lists.ozlabs.org (Postfix) with SMTP id E6C461A0EAD for ; Sun, 25 Jan 2015 08:11:24 +1100 (AEDT) Received: from 10.8.207.99 by mailrelay.collogia.de (InterScan VirusWall); Sat, 24 Jan 2015 22:11:24 +0100 Received: from EXCHANGE.collogia.de (192.168.10.9) by edge.collogia.de (10.8.207.99) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 24 Jan 2015 22:11:09 +0100 Received: from collogia.de (192.168.11.43) by exchange.collogia.de (192.168.10.9) with Microsoft SMTP Server id 14.3.158.1; Sat, 24 Jan 2015 22:11:09 +0100 Subject: [PATCH v1 3/3] SHA256 for PPC/SPE - kernel config From: Markus Stockhausen Date: Sat, 24 Jan 2015 22:11:09 +0100 To: X-Mailer: @(#) mailsend v1.17b14 (Unix) X-Copyright: BSD. It is illegal to use this software for Spamming MIME-Version: 1.0 Message-ID: <05ae52fa-9955-48d5-9368-597413353cf1@EXCHANGE.collogia.de> X-TM-AS-Product-Ver: ISVW-7.00.0.1392-7.5.0.1018-21282002 X-TM-AS-Result: No X-TM-AS-Category-Info: 31:0,000000 X-TM-AS-MatchedID: 140275-147015-703523-700918-701016-188019-121624-701604-7 02520-703366-702747-706561-702376-160005-148035-148036-23116-29102-30060-42 003 Cc: linuxppc-dev@lists.ozlabs.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" [PATCH v1 3/3] SHA256 for PPC/SPE - kernel config Integrate the module into the kernel config tree. Signed-off-by: Markus Stockhausen **************************************************************************** Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Über das Internet versandte E-Mails können unter fremden Namen erstellt oder manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine rechtsverbindliche Willenserklärung. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln Vorstand: Kadir Akin Dr. Michael Höhnerbach Vorsitzender des Aufsichtsrates: Hans Kristian Langva Registergericht: Amtsgericht Köln Registernummer: HRB 52 497 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. e-mails sent over the internet may have been written under a wrong name or been manipulated. That is why this message sent as an e-mail is not a legally binding declaration of intention. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln executive board: Kadir Akin Dr. Michael Höhnerbach President of the supervisory board: Hans Kristian Langva Registry office: district court Cologne Register number: HRB 52 497 **************************************************************************** diff --git a/arch/powerpc/crypto/Makefile b/arch/powerpc/crypto/Makefile index 2926fb9..a07e763 100644 --- a/arch/powerpc/crypto/Makefile +++ b/arch/powerpc/crypto/Makefile @@ -5,5 +5,7 @@ # obj-$(CONFIG_CRYPTO_SHA1_PPC) += sha1-powerpc.o +obj-$(CONFIG_CRYPTO_SHA256_PPC_SPE) += sha256-ppc-spe.o sha1-powerpc-y := sha1-powerpc-asm.o sha1.o +sha256-ppc-spe-y := sha256-spe-asm.o sha256_spe_glue.o diff --git a/crypto/Kconfig b/crypto/Kconfig index 87bbc9c..86d35be 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -601,6 +601,15 @@ config CRYPTO_SHA256 This code also includes SHA-224, a 224 bit hash with 112 bits of security against collision attacks. +config CRYPTO_SHA256_PPC_SPE + tristate "SHA224 and SHA256 digest algorithm (PPC SPE)" + depends on PPC && SPE + select CRYPTO_SHA256 + select CRYPTO_HASH + help + SHA224 and SHA256 secure hash standard (DFIPS 180-2) + implemented using powerpc SPE SIMD instruction set. + config CRYPTO_SHA256_SPARC64 tristate "SHA224 and SHA256 digest algorithm (SPARC64)" depends on SPARC64