diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2012-09-13 19:00:49 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-01-09 22:43:45 -0500 |
commit | 323a6bf1d6f4ec7907d9d8aacb4ae9590f755dda (patch) | |
tree | 90b75e02d5d9eb74b424155ae726eef5e7f16ff3 /crypto | |
parent | 5c49985c21bba4d2f899e3a97121868a5c58a876 (diff) |
powerpc: Add a powerpc implementation of SHA-1
This patch adds a crypto driver which provides a powerpc accelerated
implementation of SHA-1, accelerated in that it is written in asm.
Original patch by Paul, minor fixups for upstream by moi.
Lightly tested on 64-bit with the test program here:
http://michael.ellerman.id.au/files/junkcode/sha1test.c
Seems to work, and is "not slower" than the generic version.
Needs testing on 32-bit.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 4641d95651d3..8e6ae5ed8379 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -479,6 +479,13 @@ config CRYPTO_SHA1_ARM | |||
479 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented | 479 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented |
480 | using optimized ARM assembler. | 480 | using optimized ARM assembler. |
481 | 481 | ||
482 | config CRYPTO_SHA1_PPC | ||
483 | tristate "SHA1 digest algorithm (powerpc)" | ||
484 | depends on PPC | ||
485 | help | ||
486 | This is the powerpc hardware accelerated implementation of the | ||
487 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). | ||
488 | |||
482 | config CRYPTO_SHA256 | 489 | config CRYPTO_SHA256 |
483 | tristate "SHA224 and SHA256 digest algorithm" | 490 | tristate "SHA224 and SHA256 digest algorithm" |
484 | select CRYPTO_HASH | 491 | select CRYPTO_HASH |