diff options
author | Andy Polyakov <appro@openssl.org> | 2004-05-15 11:29:55 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-05-15 11:29:55 +0000 |
commit | 9e0aad9fd60635e240f7742fa1497eced6f1cd0b (patch) | |
tree | 3bcdb1f59b421e626a2c94ea743ccc4d18628c1c /crypto/md32_common.h | |
parent | 1c7a0e2856bce20267174375fd66007fa172354d (diff) |
size_t-fication of message digest APIs. We should size_t-fy more APIs...
Diffstat (limited to 'crypto/md32_common.h')
-rw-r--r-- | crypto/md32_common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 307ec30dfc..535ea85d16 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -410,21 +410,21 @@ * Time for some action:-) */ -int HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len) +int HASH_UPDATE (HASH_CTX *c, const void *data_, size_t len) { const unsigned char *data=data_; register HASH_LONG * p; - register unsigned long l; + register HASH_LONG l; int sw,sc,ew,ec; if (len==0) return 1; - l=(c->Nl+(len<<3))&0xffffffffL; + l=(c->Nl+(((HASH_LONG)len)<<3))&0xffffffffUL; /* 95-05-24 eay Fixed a bug with the overflow handling, thanks to * Wei Dai <weidai@eskimo.com> for pointing it out. */ if (l < c->Nl) /* overflow */ c->Nh++; - c->Nh+=(len>>29); + c->Nh+=(len>>29); /* might cause compiler warning on 16-bit */ c->Nl=l; if (c->num != 0) |