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.
It is a simple cmake project, so:
mkdir build
cd build
cmake ..
make
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.