diff options
Diffstat (limited to 'crypto/md4')
-rw-r--r-- | crypto/md4/md4.h | 4 | ||||
-rw-r--r-- | crypto/md4/md4_dgst.c | 4 | ||||
-rw-r--r-- | crypto/md4/md4_locl.h | 4 | ||||
-rw-r--r-- | crypto/md4/md4_one.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/crypto/md4/md4.h b/crypto/md4/md4.h index 7a7b23682f..9a5b6603fe 100644 --- a/crypto/md4/md4.h +++ b/crypto/md4/md4.h @@ -105,9 +105,9 @@ typedef struct MD4state_st } MD4_CTX; int MD4_Init(MD4_CTX *c); -int MD4_Update(MD4_CTX *c, const void *data, unsigned long len); +int MD4_Update(MD4_CTX *c, const void *data, size_t len); int MD4_Final(unsigned char *md, MD4_CTX *c); -unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md); +unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md); void MD4_Transform(MD4_CTX *c, const unsigned char *b); #ifdef __cplusplus } diff --git a/crypto/md4/md4_dgst.c b/crypto/md4/md4_dgst.c index 7afb7185b6..d4c7057f13 100644 --- a/crypto/md4/md4_dgst.c +++ b/crypto/md4/md4_dgst.c @@ -83,7 +83,7 @@ int MD4_Init(MD4_CTX *c) } #ifndef md4_block_host_order -void md4_block_host_order (MD4_CTX *c, const void *data, int num) +void md4_block_host_order (MD4_CTX *c, const void *data, size_t num) { const MD4_LONG *X=data; register unsigned MD32_REG_T A,B,C,D; @@ -159,7 +159,7 @@ void md4_block_host_order (MD4_CTX *c, const void *data, int num) #ifdef X #undef X #endif -void md4_block_data_order (MD4_CTX *c, const void *data_, int num) +void md4_block_data_order (MD4_CTX *c, const void *data_, size_t num) { const unsigned char *data=data_; register unsigned MD32_REG_T A,B,C,D,l; diff --git a/crypto/md4/md4_locl.h b/crypto/md4/md4_locl.h index a8d31d7a73..7e219b17ea 100644 --- a/crypto/md4/md4_locl.h +++ b/crypto/md4/md4_locl.h @@ -65,8 +65,8 @@ #define MD4_LONG_LOG2 2 /* default to 32 bits */ #endif -void md4_block_host_order (MD4_CTX *c, const void *p,int num); -void md4_block_data_order (MD4_CTX *c, const void *p,int num); +void md4_block_host_order (MD4_CTX *c, const void *p,size_t num); +void md4_block_data_order (MD4_CTX *c, const void *p,size_t num); #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) /* diff --git a/crypto/md4/md4_one.c b/crypto/md4/md4_one.c index 00565507e4..64601b62df 100644 --- a/crypto/md4/md4_one.c +++ b/crypto/md4/md4_one.c @@ -65,7 +65,7 @@ #include <openssl/ebcdic.h> #endif -unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md) +unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md) { MD4_CTX c; static unsigned char m[MD4_DIGEST_LENGTH]; |