Skip to content

Commit

Permalink
fix for #39 MD5 hash bug, UINT4 is now an uint32_t, which should work…
Browse files Browse the repository at this point in the history
… also correct on 64bit systems
  • Loading branch information
Gulliver authored and louiz committed Oct 19, 2016
1 parent bbb17b9 commit 1d92fe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generator/md5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
**********************************************************************
*/
#include <string>
#include <stdint.h>

/* typedef a 32 bit type */
typedef unsigned long int UINT4;
typedef uint32_t UINT4;
/* Data structure for MD5 (Message Digest) computation */
typedef struct {
UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
Expand Down

0 comments on commit 1d92fe5

Please sign in to comment.