mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-28 23:32:13 +00:00
Fix MD4 hashing for x86_64
This commit is contained in:
parent
17dd12384c
commit
bca35dec66
2 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ typedef unsigned char *POINTER;
|
||||||
typedef unsigned short int UINT2;
|
typedef unsigned short int UINT2;
|
||||||
|
|
||||||
/* UINT4 defines a four byte word */
|
/* UINT4 defines a four byte word */
|
||||||
typedef unsigned long int UINT4;
|
typedef unsigned int UINT4;
|
||||||
|
|
||||||
/* MD4 context. */
|
/* MD4 context. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -244,9 +244,9 @@ void MD4_Final( MD4_CTX *context, unsigned char digest[16] ) {
|
||||||
MD4_BlockChecksum
|
MD4_BlockChecksum
|
||||||
===============
|
===============
|
||||||
*/
|
*/
|
||||||
unsigned long MD4_BlockChecksum( const void *data, int length ) {
|
unsigned int MD4_BlockChecksum( const void *data, int length ) {
|
||||||
unsigned long digest[4];
|
unsigned int digest[4];
|
||||||
unsigned long val;
|
unsigned int val;
|
||||||
MD4_CTX ctx;
|
MD4_CTX ctx;
|
||||||
|
|
||||||
MD4_Init( &ctx );
|
MD4_Init( &ctx );
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned long MD4_BlockChecksum( const void *data, int length );
|
unsigned int MD4_BlockChecksum( const void *data, int length );
|
||||||
|
|
||||||
#endif /* !__MD4_H__ */
|
#endif /* !__MD4_H__ */
|
||||||
|
|
Loading…
Reference in a new issue