Store the partial block as uint8_t, not uint32_t.
The uint32_t likely dates to them using HASH_LONG everywhere. Nothing ever
touches c->data as a uint32_t, only bytes. (Which makes sense seeing as it
stores the partial block.)
Change-Id: I634cb7f2b6306523aa663f8697b7dc92aa491320
Reviewed-on: https://boringssl-review.googlesource.com/6651
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/md5.h b/include/openssl/md5.h
index 055cdb0..55162f0 100644
--- a/include/openssl/md5.h
+++ b/include/openssl/md5.h
@@ -95,7 +95,7 @@
struct md5_state_st {
uint32_t h[4];
uint32_t Nl, Nh;
- uint32_t data[16];
+ uint8_t data[MD5_CBLOCK];
unsigned num;
};