Allow to interleave visibility and function modifiers
[hiphop-php.git] / hphp / zend / zend-md5.h
blob2e2a69408f909d4655280b32b181f0f295980ff6
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 2.00 of the Zend license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.zend.com/license/2_00.txt. |
12 | If you did not receive a copy of the Zend license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@zend.com so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
18 #include <stdint.h>
20 namespace HPHP {
22 typedef struct {
23 uint32_t state[4]; /* state (ABCD) */
24 uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
25 unsigned char buffer[64]; /* input buffer */
26 } PHP_MD5_CTX;
28 void PHP_MD5Init(PHP_MD5_CTX *context);
30 void PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input,
31 unsigned int inputLen);
33 void PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context);