diff options
Diffstat (limited to 'crypto/md5')
-rw-r--r-- | crypto/md5/md5.h | 2 | ||||
-rw-r--r-- | crypto/md5/md5_dgst.c | 5 | ||||
-rw-r--r-- | crypto/md5/md5_locl.h | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/crypto/md5/md5.h b/crypto/md5/md5.h index 148fb963d4..bdab6d45e8 100644 --- a/crypto/md5/md5.h +++ b/crypto/md5/md5.h @@ -106,7 +106,7 @@ void MD5_Init(MD5_CTX *c); void MD5_Update(MD5_CTX *c, const unsigned char *data, unsigned long len); void MD5_Final(unsigned char *md, MD5_CTX *c); unsigned char *MD5(unsigned char *d, unsigned long n, unsigned char *md); -void MD5_Transform(MD5_CTX *c, unsigned char *b); +void MD5_Transform(MD5_CTX *c, const unsigned char *b); #ifdef __cplusplus } #endif diff --git a/crypto/md5/md5_dgst.c b/crypto/md5/md5_dgst.c index 830e04d02a..bab309b3fb 100644 --- a/crypto/md5/md5_dgst.c +++ b/crypto/md5/md5_dgst.c @@ -82,8 +82,9 @@ void MD5_Init(MD5_CTX *c) } #ifndef md5_block_host_order -void md5_block_host_order (MD5_CTX *c, const MD5_LONG *X, int num) +void md5_block_host_order (MD5_CTX *c, const void *data, int num) { + const MD5_LONG *X=data; register unsigned long A,B,C,D; /* * In case you wonder why A-D are declared as long and not @@ -185,7 +186,7 @@ void md5_block_host_order (MD5_CTX *c, const MD5_LONG *X, int num) #endif #ifndef md5_block_data_order -void md5_block_data_order (MD5_CTX *c, const unsigned char *data, int num) +void md5_block_data_order (MD5_CTX *c, const void *data, int num) { register unsigned long A,B,C,D,l; /* diff --git a/crypto/md5/md5_locl.h b/crypto/md5/md5_locl.h index 1647683069..510e5735e1 100644 --- a/crypto/md5/md5_locl.h +++ b/crypto/md5/md5_locl.h @@ -73,8 +73,8 @@ # endif #endif -void md5_block_host_order (MD5_CTX *c, const MD5_LONG *p,int num); -void md5_block_data_order (MD5_CTX *c, const unsigned char *p,int num); +void md5_block_host_order (MD5_CTX *c, const void *p,int num); +void md5_block_data_order (MD5_CTX *c, const void *p,int num); #if defined(__i386) /* @@ -98,7 +98,7 @@ void md5_block_data_order (MD5_CTX *c, const unsigned char *p,int num); * * <appro@fy.chalmers.se> */ -#define md5_block_data_order(c,p,num) md5_block_host_order((c),(const MD5_LONG *)(p),(num)) +#define md5_block_data_order md5_block_host_order #endif #define DATA_ORDER_IS_LITTLE_ENDIAN |