diff options
| author | Sara Golemon <pollita@php.net> | 2006-11-15 20:06:09 +0000 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2006-11-15 20:06:09 +0000 |
| commit | 2eb308ff756ef04e6671357e6908c53bfe342eb6 (patch) | |
| tree | 3e6a97252602a60c896cb4bab8d17373c7814327 /ext/hash/php_hash_md.h | |
| parent | 892c00bb9f8ab68a870de5ec7f252d88048c69a4 (diff) | |
| download | php-git-2eb308ff756ef04e6671357e6908c53bfe342eb6.tar.gz | |
Backport md2, ripemd256, and ripemd320 algos from HEAD
Diffstat (limited to 'ext/hash/php_hash_md.h')
| -rw-r--r-- | ext/hash/php_hash_md.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/hash/php_hash_md.h b/ext/hash/php_hash_md.h index 30bf6a1602..66a0c88ef5 100644 --- a/ext/hash/php_hash_md.h +++ b/ext/hash/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 |
