sha1.h

Go to the documentation of this file.
00001 /* public api for steve reid's public domain SHA-1 implementation */
00002 /* this file is in the public domain */
00003 
00004 #include <stdint.h>
00005 
00006 typedef struct {
00007     uint32_t state[5];
00008     uint32_t count[2];
00009     uint8_t  buffer[64];
00010 } SHA1_CTX;
00011 
00012 #define SHA1_DIGEST_SIZE 20
00013 
00014 void sat_SHA1_Init(SHA1_CTX* context);
00015 void sat_SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len);
00016 void sat_SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]);

doxygen