diff options
author | Andy Polyakov <appro@openssl.org> | 2004-07-25 19:10:43 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-07-25 19:10:43 +0000 |
commit | 16ab8a93bc96cacc1b5376cc084f70122368ee1f (patch) | |
tree | 0ab78377030cffb4017aa2f54bc6ad83d801c24d /crypto/md32_common.h | |
parent | c88f8f76b54d9d27f3c29645616d9ec427ee41c4 (diff) |
Minor 64-bit md32_common.h update and minor unsignification of digests.
Diffstat (limited to 'crypto/md32_common.h')
-rw-r--r-- | crypto/md32_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 5bdcf035aa..7eef6e9074 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -77,7 +77,7 @@ * ... * HASH_LONG Nl,Nh; * HASH_LONG data[HASH_LBLOCK]; - * int num; + * unsigned int num; * ... * } HASH_CTX; * HASH_UPDATE @@ -398,7 +398,7 @@ int HASH_UPDATE (HASH_CTX *c, const void *data_, size_t len) const unsigned char *data=data_; register HASH_LONG * p; register HASH_LONG l; - unsigned int sw,sc,ew,ec; + size_t sw,sc,ew,ec; if (len==0) return 1; @@ -430,7 +430,7 @@ int HASH_UPDATE (HASH_CTX *c, const void *data_, size_t len) } else { - c->num+=len; + c->num+=(unsigned int)len; if ((sc+len) < 4) /* ugly, add char's to a word */ { l=p[sw]; HOST_p_c2l_p(data,l,sc,len); p[sw]=l; |