aha/crypto
Nicolas Pitre fa9b98fdab [CRYPTO] sha1: Avoid shifting count left and right
This patch avoids shifting the count left and right needlessly for each
call to sha1_update().  It instead can be done only once at the end in
sha1_final().

Keeping the previous test example (sha1_update() successively called with
len=64), a 1.3% performance increase can be observed on i386, or 0.2% on
ARM.  The generated code is also smaller on ARM.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-01-09 14:15:46 -08:00
..
aes.c [CRYPTO] Allow AES C/ASM implementations to coexist 2006-01-09 14:15:39 -08:00
anubis.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
api.c [CRYPTO] Allow multiple implementations of the same algorithm 2006-01-09 14:15:37 -08:00
arc4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
blowfish.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
cast5.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
cast6.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
cipher.c [CRYPTO] Fix boundary check in standard multi-block cipher processors 2005-09-06 14:49:44 -07:00
compress.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc32c.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
crypto_null.c [PATCH] crypto: fix null encryption/compression 2005-05-17 07:59:18 -07:00
deflate.c [PATCH] crypto: call zlib end functions on deflate exit path 2005-04-16 15:23:58 -07:00
des.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
digest.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hmac.c [PATCH] Use sg_set_buf/sg_init_one where applicable 2005-10-30 11:19:43 +11:00
internal.h [CRYPTO] Allow multiple implementations of the same algorithm 2006-01-09 14:15:37 -08:00
Kconfig [CRYPTO] Allow AES C/ASM implementations to coexist 2006-01-09 14:15:39 -08:00
khazad.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
md4.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
md5.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
michael_mic.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
proc.c [CRYPTO] Allow multiple implementations of the same algorithm 2006-01-09 14:15:37 -08:00
scatterwalk.c [CRYPTO] Add plumbing for multi-block operations 2005-07-06 13:51:31 -07:00
scatterwalk.h [CRYPTO] Add alignmask for low-level cipher implementations 2005-07-06 13:52:09 -07:00
serpent.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
sha1.c [CRYPTO] sha1: Avoid shifting count left and right 2006-01-09 14:15:46 -08:00
sha256.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
sha512.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
tcrypt.c [PATCH] s390: in-kernel crypto test vectors 2006-01-06 08:33:51 -08:00
tcrypt.h [PATCH] s390: in-kernel crypto test vectors 2006-01-06 08:33:51 -08:00
tea.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
tgr192.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
twofish.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
wp512.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00