aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-24 20:51:28 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-24 20:51:28 +0200
commit03a5fe378e50cb7a43c4c367c6c0e18e6f156597 (patch)
tree99b2ae917d047618405ce513c048100f3bf1535e
parentf4c93ab30460667cb3506a89a5419508a7bcfa0e (diff)
downloadbusybox-03a5fe378e50cb7a43c4c367c6c0e18e6f156597.tar.gz
sha1: small tweak for clearer code, no logic changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/hash_md5_sha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
index 5e4078ae6..e427f6080 100644
--- a/libbb/hash_md5_sha.c
+++ b/libbb/hash_md5_sha.c
@@ -539,7 +539,7 @@ static void FAST_FUNC sha1_process_block64(sha1_ctx_t *ctx)
W[cnt] = W[cnt+16] = rotl32(W[cnt+13] ^ W[cnt+8] ^ W[cnt+2] ^ W[cnt], 1);
work += W[cnt];
}
- work = e + work + rotl32(a, 5) + rconsts[i];
+ work += e + rotl32(a, 5) + rconsts[i];
/* Rotate by one for next time */
e = d;