1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/crashreporter/google-breakpad/src/common/md5.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +// Copyright 2007 Google Inc. All Rights Reserved. 1.5 +// Author: liuli@google.com (Liu Li) 1.6 +#ifndef COMMON_MD5_H__ 1.7 +#define COMMON_MD5_H__ 1.8 + 1.9 +#include <stdint.h> 1.10 + 1.11 +namespace google_breakpad { 1.12 + 1.13 +typedef uint32_t u32; 1.14 +typedef uint8_t u8; 1.15 + 1.16 +struct MD5Context { 1.17 + u32 buf[4]; 1.18 + u32 bits[2]; 1.19 + u8 in[64]; 1.20 +}; 1.21 + 1.22 +void MD5Init(struct MD5Context *ctx); 1.23 + 1.24 +void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len); 1.25 + 1.26 +void MD5Final(unsigned char digest[16], struct MD5Context *ctx); 1.27 + 1.28 +} // namespace google_breakpad 1.29 + 1.30 +#endif // COMMON_MD5_H__