2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 16:46:23 +08:00
linux-next/arch/arm/lib
Nicolas Pitre c09f98271f [ARM] 2930/1: optimized sha1 implementation for ARM
Patch from Nicolas Pitre

Here's an ARM assembly SHA1 implementation to replace the default C
version. It is approximately 50% faster than the generic C version. On
an XScale processor running at 400MHz:
	generic C version:	9.8 MB/s
	my version:		14.5 MB/s
This code is useful to quite a few callers in the tree:
crypto/sha1.c:		sha_transform(sctx->state, sctx->buffer, temp);
crypto/sha1.c:			sha_transform(sctx->state, &data[i], temp);
drivers/char/random.c:		sha_transform(buf, (__u8 *)r->pool+i, buf + 5);
drivers/char/random.c:	sha_transform(buf, (__u8 *)data, buf + 5);
net/ipv4/syncookies.c:	sha_transform(tmp + 16, (__u8 *)tmp, tmp + 16 + 5);

Signed-off-by: Nicolas Pitre <nico@cam.org>
Seems to work fine on big-endian as well.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-10-28 15:26:40 +01:00
..
ashldi3.c [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00
ashrdi3.c [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00
backtrace.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitops.h [ARM SMP] Only enable V6K instructions on V6 MP core CPUs 2005-08-10 14:41:45 +01:00
changebit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
clearbit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
copy_page.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
csumipv6.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
csumpartial.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
csumpartialcopy.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
csumpartialcopygeneric.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
csumpartialcopyuser.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
delay.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
div64.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ecard.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
findbit.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
floppydma.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gcclib.h [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00
getuser.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
io-acorn.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-readsb.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-readsl.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-readsw-armv3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-readsw-armv4.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-shark.c [PATCH] ARM: 2815/1: Shark: new defconfig, fixes with __io and serial ports 2005-07-16 17:17:18 +01:00
io-writesb.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-writesl.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-writesw-armv3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io-writesw-armv4.S [PATCH] ARM: 2705/1: fix writesw for misaligned source pointer 2005-06-08 19:00:16 +01:00
lib1funcs.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lshrdi3.c [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00
Makefile [ARM] 2930/1: optimized sha1 implementation for ARM 2005-10-28 15:26:40 +01:00
memchr.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memcpy.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memset.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memzero.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
muldi3.c [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00
putuser.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
setbit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
sha1.S [ARM] 2930/1: optimized sha1 implementation for ARM 2005-10-28 15:26:40 +01:00
strchr.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
strncpy_from_user.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
strnlen_user.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
strrchr.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
testchangebit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
testclearbit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
testsetbit.S [PATCH] ARM: bitops 2005-04-17 15:51:02 +01:00
uaccess.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ucmpdi2.c [PATCH] ARM: Lindent GCC helper functions 2005-06-20 16:45:32 +01:00