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.

24 lines
580 B
Markdown

# 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.