michael@0: // Copyright 2007 Google Inc. All Rights Reserved. michael@0: // Author: liuli@google.com (Liu Li) michael@0: #ifndef COMMON_MD5_H__ michael@0: #define COMMON_MD5_H__ michael@0: michael@0: #include michael@0: michael@0: namespace google_breakpad { michael@0: michael@0: typedef uint32_t u32; michael@0: typedef uint8_t u8; michael@0: michael@0: struct MD5Context { michael@0: u32 buf[4]; michael@0: u32 bits[2]; michael@0: u8 in[64]; michael@0: }; michael@0: michael@0: void MD5Init(struct MD5Context *ctx); michael@0: michael@0: void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len); michael@0: michael@0: void MD5Final(unsigned char digest[16], struct MD5Context *ctx); michael@0: michael@0: } // namespace google_breakpad michael@0: michael@0: #endif // COMMON_MD5_H__