3 * By Steve Reid <sreid@sea-to-sky.net>
8 // Ported to C++, Google style and uses basictypes.h
10 #ifndef TALK_BASE_SHA1_H_
11 #define TALK_BASE_SHA1_H_
13 #include "talk/base/basictypes.h"
17 // TODO: Change bit count to uint64.
18 uint32 count[2]; // Bit count of input.
22 #define SHA1_DIGEST_SIZE 20
24 void SHA1Init(SHA1_CTX* context);
25 void SHA1Update(SHA1_CTX* context, const uint8* data, size_t len);
26 void SHA1Final(SHA1_CTX* context, uint8 digest[SHA1_DIGEST_SIZE]);
28 #endif // TALK_BASE_SHA1_H_