You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errata 2, now, after changing it to uint32_t, it compiles on MacOS, but now doesn't compile on Win32, because there is an incompatibility with LPDWORD*.
So, the correct and ONLY fix is to change sha256.h and sha256.c (and other files) to replace WORD with uint32_t. WORD and DWORD are reserved by the Microsoft API.
I noticed that I can't build sha256.c and sha256.h in Windows, because
WORD
is redefined with different data types.There is no 32-bit
WORD
. AWORD
is always 16-bit, and aDWORD
would be 32-bit.To fix this issue:Changetypedef unsigned int WORD; // 32-bit word, change to "long" for 16-bit machines
To:typedef unsigned long DWORD;
Then, change all WORD to DWORD in the code.This does not only affect SHA256, but most of the other files too.
The text was updated successfully, but these errors were encountered: