1
0
Fork
You've already forked SHA1
0
No description
  • C 100%
Find a file
2023年02月26日 17:27:30 +01:00
LICENSE Change license from 2 Clause BSD to 0 Clause BSD 2023年02月26日 17:27:30 +01:00
NIST.FIPS.180-4.pdf First commit 2022年05月14日 13:51:13 +02:00
README.md Change license from 2 Clause BSD to 0 Clause BSD 2023年02月26日 17:27:30 +01:00
sha1.c Change license from 2 Clause BSD to 0 Clause BSD 2023年02月26日 17:27:30 +01:00
sha1.h Change license from 2 Clause BSD to 0 Clause BSD 2023年02月26日 17:27:30 +01:00

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.