An implementation of the SHA-1 hash algorithm in C.
int SHA1Init(SHA1Context* Ctx);Call this before calling other function to init Ctx.
int SHA1Update(SHA1Context* Ctx, const BYTE buf[], unsigned int length);This function accepts an array of octets buf as the next portion of the message. length is the length of buf.
int SHA1Result(SHA1Context* Ctx, BYTE digest[20]);Computes the message digest and stores to digest.