Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 565 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 565 Bytes
  1. The project began in SHA256_embedded's sha256 files.
  2. I only ported to embedded chips, such as Intel 8051 series CPUs.
  3. Supported compilers are:
    1. GCC ANSI, C89, C9X, C1X
    2. Keil CX51.

run

  1. git clone [email protected]:iroan/sha256-8051cpu.git
  2. cd sha256-8051cpu && make

usage

  1. #include "sha256.h"
  2. add code:
    sha256_init(&ctx);
    sha256_update(&ctx, msg, msglen);
    sha256_final(&ctx, result);
  3. compile project with sha256.c