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
73383cd266
Changing names in README. |
1 year ago | |
---|---|---|
src | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
build.flow | 1 year ago | |
flow | 1 year ago | |
output.flow | 1 year ago | |
test | 1 year ago |
README.md
SHA1 in C
SHA1 algorithm in C. A single function that reads a file and outputs it's sha1sum.
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:
- SHA1_Result struct to store result
- SHA1_sha1file, a function to get sha1 of a file.
- leftRotate32, a function to circular shift 32 bit unsigned integers.