- The project began in SHA256_embedded's sha256 files.
- I only ported to embedded chips, such as Intel 8051 series CPUs.
- Supported compilers are:
- GCC ANSI, C89, C9X, C1X
- Keil CX51.
git clone [email protected]:iroan/sha256-8051cpu.git
cd sha256-8051cpu && make
#include "sha256.h"
- add code:
sha256_init(&ctx); sha256_update(&ctx, msg, msglen); sha256_final(&ctx, result);
- compile project with
sha256.c