From 3beb8dd59872a466ad9f01251700a100c21dd27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 17 May 2018 11:34:18 +0200 Subject: [PATCH] sha256: Use standard types uint8_t / uint32_t so types doesn't have to be adjusted manually --- sha256.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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];