mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
MFH: add declarations
more uint -> size_t fixes
This commit is contained in:
parent
bb6aa3ebd3
commit
3f666e1dfe
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user