diff options
| author | Sara Golemon <pollita@php.net> | 2005-12-03 01:17:48 +0000 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2005-12-03 01:17:48 +0000 |
| commit | 860c3a5a320ca0b7c35e4a1b906f1844c8e887ca (patch) | |
| tree | f87bceff80f262bec0a9acd6e0ebfe58a1e24ac7 /ext/hash/php_hash_md.h | |
| parent | 6c3e2b32bf5f5ebb8e3fc1f8aa40ebc6b99a9de9 (diff) | |
| download | php-git-860c3a5a320ca0b7c35e4a1b906f1844c8e887ca.tar.gz | |
MFH: Add MD4
Diffstat (limited to 'ext/hash/php_hash_md.h')
| -rw-r--r-- | ext/hash/php_hash_md.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/hash/php_hash_md.h b/ext/hash/php_hash_md.h index d0229d7a9e..a2a92a559b 100644 --- a/ext/hash/php_hash_md.h +++ b/ext/hash/php_hash_md.h @@ -58,7 +58,6 @@ documentation and/or software. */ -#include "ext/standard/basic_functions.h" /* MD5 context. */ typedef struct { php_hash_uint32 state[4]; /* state (ABCD) */ @@ -75,5 +74,15 @@ PHP_NAMED_FUNCTION(php_if_md5); PHP_NAMED_FUNCTION(php_if_md5_file); #endif /* PHP_HASH_MD5_NOT_IN_CORE */ +/* MD4 context */ +typedef struct { + php_hash_uint32 state[4]; + php_hash_uint32 count[2]; + unsigned char buffer[64]; +} PHP_MD4_CTX; + +#define PHP_MD4Init PHP_MD5Init +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 *); #endif |
