Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 696 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 696 Bytes

SHA256 Library

A simple static sha256 library for use in other projects.

The actual code has come from cgminer which is a leaner copy of Aaron Gifford's Implementations of SHA-256.

Build

It is a simple cmake project, so:

mkdir build
cd build
cmake ..
make

Test

For the test to run, sha256sum must be in the $PATH. Then in the build directory, run test/sha256sum_test. It will create a temprory file, and checks if the library computes sha256sum of that file, correctly like sha256sum command.