Fix "Value stored to 'a' is never read" in SHA1Transform()

Using same fix as used in android [1].

  [1]: android.googlesource.com/platform/dalvik/+/android-4.4.2_r2/libdex/sha1.cpp#193
This commit is contained in:
Cœur 2023-03-02 14:07:44 +08:00 committed by Azat Khuzhin
parent bcefdbc67a
commit b84fee24ab

2
sha1.c
View File

@ -198,8 +198,6 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
state[2] += c;
state[3] += d;
state[4] += e;
/* Wipe variables */
a = b = c = d = e = 0;
#ifdef SHA1HANDSOFF
memset(block, '\0', sizeof(block));
#endif