1
0

sha1.h 310 B

123456789
  1. typedef struct {
  2. unsigned long state[5];
  3. unsigned long count[2];
  4. unsigned char buffer[64];
  5. } SHA1_CTX;
  6. extern "C" void SHA1Init(SHA1_CTX* context);
  7. extern "C" void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int len);
  8. extern "C" void SHA1Final(unsigned char digest[20], SHA1_CTX* context);