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/md4
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/md4')
-rw-r--r--crypto/md4/md4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/md4/md4.c b/crypto/md4/md4.c
index 6150b969..5ef9ae51 100644
--- a/crypto/md4/md4.c
+++ b/crypto/md4/md4.c
@@ -83,7 +83,7 @@ void md4_block_data_order (MD4_CTX *md4, const void *p, size_t num);
#define HASH_FINAL MD4_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; \