Skip to content

There is no 32-bit WORD. That's called a DWORD #35

Description

@danielmarschall

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. A WORD is always 16-bit, and a DWORD would be 32-bit.

To fix this issue:

Change
typedef 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions