PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/thirdparty/breakpad/common/md5.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 27 lines | 16 code | 9 blank | 2 comment | 0 complexity | 9f53d3d7b757483b1ad2c093c7d613bb MD5 | raw file
 1// Copyright 2007 Google Inc. All Rights Reserved.
 2// Author: liuli@google.com (Liu Li)
 3#ifndef COMMON_MD5_H__
 4#define COMMON_MD5_H__
 5
 6#include <stdint.h>
 7
 8namespace google_breakpad {
 9
10typedef uint32_t u32;
11typedef uint8_t u8;
12
13struct MD5Context {
14  u32 buf[4];
15  u32 bits[2];
16  u8 in[64];
17};
18
19void MD5Init(struct MD5Context *ctx);
20
21void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len);
22
23void MD5Final(unsigned char digest[16], struct MD5Context *ctx);
24
25}  // namespace google_breakpad
26
27#endif  // COMMON_MD5_H__