Skip to content

Commit

Permalink
Use fixed-size ints in MD5 calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Meridian59 committed Dec 31, 2015
1 parent 26c4eba commit 808144c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ These notices must be retained in any copies of any part of this
documentation and/or software.
*/

#include <stdint.h>

#define ENCRYPT_LEN 16 // # of bytes in encrypted password

/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;

/* UINT2 defines a two byte word */
typedef unsigned short int UINT2;
typedef uint16_t UINT2;

/* UINT4 defines a four byte word */
typedef unsigned long int UINT4;
typedef uint32_t UINT4;

void MDString (char *string, unsigned char *digest);

Expand Down

0 comments on commit 808144c

Please sign in to comment.