android_kernel_xiaomi_sm8350/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
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
compress.c
crc32c.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
crypto_null.c
deflate.c
des.c [CRYPTO] Use standard byte order macros wherever possible 2006-01-09 14:15:34 -08:00
digest.c
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
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
scatterwalk.h
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