summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-03 23:50:33 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-03 23:50:33 +0000
commit3f666e1dfe88bdef48a28d967cf047e679b6bf0f (patch)
treef34b835747748c651a7231297a8beea7aa04551e
parentbb6aa3ebd34abc594b239f9c7fcbdbb86b84be60 (diff)
downloadphp-git-3f666e1dfe88bdef48a28d967cf047e679b6bf0f.tar.gz
MFH: add declarations
more uint -> size_t fixes
-rw-r--r--ext/hash/php_hash.h11
-rw-r--r--ext/hash/php_hash_salsa.h2
-rw-r--r--ext/hash/php_hash_snefru.h2
-rw-r--r--ext/hash/php_hash_whirlpool.h2
4 files changed, 14 insertions, 3 deletions
diff --git a/ext/hash/php_hash.h b/ext/hash/php_hash.h
index 8a6ed4d5e2..52a3d16984 100644
--- a/ext/hash/php_hash.h
+++ b/ext/hash/php_hash.h
@@ -106,6 +106,17 @@ extern zend_module_entry hash_module_entry;
#include "TSRM.h"
#endif
+PHP_FUNCTION(hash);
+PHP_FUNCTION(hash_file);
+PHP_FUNCTION(hash_hmac);
+PHP_FUNCTION(hash_hmac_file);
+PHP_FUNCTION(hash_init);
+PHP_FUNCTION(hash_update);
+PHP_FUNCTION(hash_update_stream);
+PHP_FUNCTION(hash_update_file);
+PHP_FUNCTION(hash_final);
+PHP_FUNCTION(hash_algos);
+
PHP_HASH_API php_hash_ops *php_hash_fetch_ops(const char *algo, int algo_len);
PHP_HASH_API void php_hash_register_algo(const char *algo, php_hash_ops *ops);
diff --git a/ext/hash/php_hash_salsa.h b/ext/hash/php_hash_salsa.h
index f6297711c0..37e35f62e2 100644
--- a/ext/hash/php_hash_salsa.h
+++ b/ext/hash/php_hash_salsa.h
@@ -36,7 +36,7 @@ typedef struct {
PHP_HASH_API void PHP_SALSA10Init(PHP_SALSA_CTX *);
PHP_HASH_API void PHP_SALSA20Init(PHP_SALSA_CTX *);
-PHP_HASH_API void PHP_SALSAUpdate(PHP_SALSA_CTX *, const unsigned char *, uint);
+PHP_HASH_API void PHP_SALSAUpdate(PHP_SALSA_CTX *, const unsigned char *, size_t);
PHP_HASH_API void PHP_SALSAFinal(unsigned char[64], PHP_SALSA_CTX *);
#endif
diff --git a/ext/hash/php_hash_snefru.h b/ext/hash/php_hash_snefru.h
index f8c71ba66d..b69278baf0 100644
--- a/ext/hash/php_hash_snefru.h
+++ b/ext/hash/php_hash_snefru.h
@@ -36,7 +36,7 @@ typedef struct {
} PHP_SNEFRU_CTX;
PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *);
-PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *, const unsigned char *, uint);
+PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *, const unsigned char *, size_t);
PHP_HASH_API void PHP_SNEFRUFinal(unsigned char[32], PHP_SNEFRU_CTX *);
#endif
diff --git a/ext/hash/php_hash_whirlpool.h b/ext/hash/php_hash_whirlpool.h
index 56be370778..5950702b11 100644
--- a/ext/hash/php_hash_whirlpool.h
+++ b/ext/hash/php_hash_whirlpool.h
@@ -33,7 +33,7 @@ typedef struct {
} PHP_WHIRLPOOL_CTX;
PHP_HASH_API void PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *);
-PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *, const unsigned char *, uint);
+PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *, const unsigned char *, size_t);
PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char[64], PHP_WHIRLPOOL_CTX *);
#endif