]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add a powerpc implementation of SHA-1
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 13 Sep 2012 23:00:49 +0000 (23:00 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 03:43:45 +0000 (14:43 +1100)
commit0a7489c178430f7d8773855d4b2a1c1a8ebd661c
tree90b75e02d5d9eb74b424155ae726eef5e7f16ff3
parent0b672157eb633e6ecf635133872878660d9fbc47
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>
arch/powerpc/Makefile
arch/powerpc/crypto/Makefile [new file with mode: 0644]
arch/powerpc/crypto/sha1-powerpc-asm.S [new file with mode: 0644]
arch/powerpc/crypto/sha1.c [new file with mode: 0644]
crypto/Kconfig