Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-05-27 08:00:07 +0300
committerAdam Langley <agl@google.com>2015-06-02 01:12:21 +0300
commit049756be467500458e63bf274e94ed2c23b4d513 (patch)
tree2e17f81e9844317b18d5400c2cde6b7206f872b6 /crypto/md5
parent338e06771c600108ba8b1e3df6a15a8920961c37 (diff)
Fix integer types in low-level hash functions.
Use sized integer types rather than unsigned char/int/long. The latter two are especially a mess as they're both used in lieu of uint32_t. Sometimes the code just blindly uses unsigned long and sometimes it uses unsigned int when an LP64 architecture would notice. Change-Id: I4c5c6aaf82cfe9fe523435588d286726a7c43056 Reviewed-on: https://boringssl-review.googlesource.com/4952 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/md5')
-rw-r--r--crypto/md5/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/md5/md5.c b/crypto/md5/md5.c
index e20b86b4..5575efb1 100644
--- a/crypto/md5/md5.c
+++ b/crypto/md5/md5.c
@@ -104,7 +104,7 @@ void md5_block_data_order(MD5_CTX *md5, const void *p, size_t num);
#define HASH_FINAL MD5_Final
#define HASH_MAKE_STRING(c, s) \
do { \
- unsigned long ll; \
+ uint32_t ll; \
ll = (c)->A; \
(void) HOST_l2c(ll, (s)); \
ll = (c)->B; \