summaryrefslogtreecommitdiff
path: root/ext/hash/php_hash_md.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/hash/php_hash_md.h')
-rw-r--r--ext/hash/php_hash_md.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/ext/hash/php_hash_md.h b/ext/hash/php_hash_md.h
index 6f457d7d8..a19d77aa0 100644
--- a/ext/hash/php_hash_md.h
+++ b/ext/hash/php_hash_md.h
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2006 The PHP Group |
+ | Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_hash_md.h,v 1.2.2.4 2006/01/01 12:50:07 sniper Exp $ */
+/* $Id: php_hash_md.h,v 1.2.2.4.2.2 2007/01/01 09:36:01 sebastian Exp $ */
#ifndef PHP_HASH_MD_H
#define PHP_HASH_MD_H
@@ -85,4 +85,16 @@ typedef struct {
PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, unsigned int);
PHP_HASH_API void PHP_MD4Final(unsigned char[16], PHP_MD4_CTX *);
+/* MD2 context */
+typedef struct {
+ unsigned char state[48];
+ unsigned char checksum[16];
+ unsigned char buffer[16];
+ char in_buffer;
+} PHP_MD2_CTX;
+
+PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context);
+PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, unsigned int);
+PHP_HASH_API void PHP_MD2Final(unsigned char[16], PHP_MD2_CTX *);
+
#endif