/ src / common / md5.h
md5.h
 1  // Copyright 2007 Google LLC
 2  // Author: liuli@google.com (Liu Li)
 3  #ifndef COMMON_MD5_H__
 4  #define COMMON_MD5_H__
 5  
 6  #include <stddef.h>
 7  #include <stdint.h>
 8  
 9  namespace google_breakpad {
10  
11  typedef uint32_t u32;
12  typedef uint8_t u8;
13  
14  struct MD5Context {
15    u32 buf[4];
16    u32 bits[2];
17    u8 in[64];
18  };
19  
20  void MD5Init(struct MD5Context *ctx);
21  
22  void MD5Update(struct MD5Context *ctx, unsigned char const *buf, size_t len);
23  
24  void MD5Final(unsigned char digest[16], struct MD5Context *ctx);
25  
26  }  // namespace google_breakpad
27  
28  #endif  // COMMON_MD5_H__