SHA1 in C
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
lomna-dev 0cb0b8e23e Updated README
Minor update to readme and test text.
1 year ago
src Changing header name 1 year ago
.gitignore Initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md Updated README 1 year ago
build.flow Failure 1 year ago
flow Failure 1 year ago
output.flow Changing header name 1 year ago
test Updated README 1 year ago

README.md

SHA1 in C

SHA1 algorithm in C. A single function that reads a file and outputs it's sha1sum. This is a little endian implementation.

How to use

This is a single header project. Only sha1.h needs to be included. Usage is shown in example.c file. So there are only 2 source files, sha1.h and example.c To compile :

python3 flow

To clean:

python3 flow clean

The "library" is only adding:

  1. SHA1_Result struct to store result
  2. SHA1_sha1file, a function to get sha1 of a file.
  3. leftRotate32, a function to circular shift 32 bit unsigned integers.