diff --git a/sha256.h b/sha256.h index 7123a30..88b18c4 100644 --- a/sha256.h +++ b/sha256.h @@ -11,13 +11,14 @@ /*************************** HEADER FILES ***************************/ #include +#include /****************************** MACROS ******************************/ #define SHA256_BLOCK_SIZE 32 // SHA256 outputs a 32 byte digest /**************************** DATA TYPES ****************************/ -typedef unsigned char BYTE; // 8-bit byte -typedef unsigned int WORD; // 32-bit word, change to "long" for 16-bit machines +typedef uint8_t BYTE; // 8-bit byte +typedef uint32_t WORD; // 32-bit word typedef struct { BYTE data[64];