sha1: small tweak for clearer code, no logic changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 24 Oct 2010 18:51:28 +0000 (20:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 24 Oct 2010 18:51:28 +0000 (20:51 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/hash_md5_sha.c

index 5e4078ae62b8c8b73b36ac5b67e22fa3b125088a..e427f6080f2054064ecd4da2918f719d3911a6f7 100644 (file)
@@ -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;