No description
| LICENSE | Change license from 2 Clause BSD to 0 Clause BSD | |
| NIST.FIPS.180-4.pdf | First commit | |
| README.md | Change license from 2 Clause BSD to 0 Clause BSD | |
| sha1.c | Change license from 2 Clause BSD to 0 Clause BSD | |
| sha1.h | Change license from 2 Clause BSD to 0 Clause BSD | |
SHA1 Implementation
A implementation of SHA1 written in C.
Functions
void SHA1_Init(SHA1_CTX *ctx);
void SHA1_Update(SHA1_CTX *ctx, const void *data, size_t len);
void SHA1_Final(SHA1_CTX *ctx, unsigned char *message_digest);
Testing
The code has been tested against the test vectors that have been published by NIST in this document. It has also been tested by other known SHA1 implementations with random values as input.