Revert "[wpa_supplicant] Cumulative patch from c4e90da6d"
This reverts commit 39bc25d3a79c1375de430a7918d949c1a86f70c6.
Test: Compilation
Change-Id: Iae7670429466958911b5296cb1359bceecc0b03e
Exempt-From-Owner-Approval: Revert since it's breaking the build
diff --git a/src/crypto/sha512-internal.c b/src/crypto/sha512-internal.c
index c026394..76c4fe7 100644
--- a/src/crypto/sha512-internal.c
+++ b/src/crypto/sha512-internal.c
@@ -109,14 +109,9 @@
/* compress 1024-bits */
static int sha512_compress(struct sha512_state *md, unsigned char *buf)
{
- u64 S[8], t0, t1;
- u64 *W;
+ u64 S[8], W[80], t0, t1;
int i;
- W = os_malloc(80 * sizeof(u64));
- if (!W)
- return -1;
-
/* copy state into S */
for (i = 0; i < 8; i++) {
S[i] = md->state[i];
@@ -151,7 +146,6 @@
md->state[i] = md->state[i] + S[i];
}
- os_free(W);
return 0;
}