diff options
author | Nicolas Pitre <nico@cam.org> | 2005-11-13 11:17:33 +1100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-09 14:15:46 -0800 |
commit | 54676ddecbf2f253c2fa9c7f0b89466a59a5ddd9 (patch) | |
tree | c2b06bb97725e183189572960ac2cbd1d0eff865 /crypto/aes.c | |
parent | 1ea5b94c2986784df933e3b42f672ae1b439da5f (diff) | |
download | linux-crypto-54676ddecbf2f253c2fa9c7f0b89466a59a5ddd9.tar.gz linux-crypto-54676ddecbf2f253c2fa9c7f0b89466a59a5ddd9.zip |
[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>
Diffstat (limited to 'crypto/aes.c')
0 files changed, 0 insertions, 0 deletions