diff options
-rw-r--r-- | ext/mcrypt/mcrypt.c | 16 | ||||
-rw-r--r-- | ext/mhash/mhash.c | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 6333d23c58..d2fb868603 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -176,7 +176,7 @@ typedef enum { RAND } iv_source; -/* proto mcrypt_create_iv(int size, int source) +/* proto string mcrypt_create_iv(int size, int source) create an initializing vector (IV) */ PHP_FUNCTION(mcrypt_create_iv) { @@ -224,7 +224,7 @@ PHP_FUNCTION(mcrypt_create_iv) RETURN_STRINGL(iv, n, 0); } -/* proto mcrypt_get_cipher_name(int cipher) +/* proto string mcrypt_get_cipher_name(int cipher) get the name of cipher */ PHP_FUNCTION(mcrypt_get_cipher_name) { @@ -247,7 +247,7 @@ PHP_FUNCTION(mcrypt_get_cipher_name) RETURN_FALSE; } -/* proto mcrypt_get_key_size(int cipher) +/* proto int mcrypt_get_key_size(int cipher) get the key size of cipher */ PHP_FUNCTION(mcrypt_get_key_size) { @@ -262,7 +262,7 @@ PHP_FUNCTION(mcrypt_get_key_size) RETURN_LONG(mcrypt_get_key_size((*cipher)->value.lval)); } -/* proto mcrypt_get_block_size(int cipher) +/* proto int mcrypt_get_block_size(int cipher) get the block size of cipher */ PHP_FUNCTION(mcrypt_get_block_size) { @@ -277,7 +277,7 @@ PHP_FUNCTION(mcrypt_get_block_size) RETURN_LONG(mcrypt_get_block_size((*cipher)->value.lval)); } -/* proto mcrypt_ofb(int cipher, string key, string data, int mode, string iv) +/* proto string mcrypt_ofb(int cipher, string key, string data, int mode, string iv) OFB crypt/decrypt data using key key with cipher cipher starting with iv */ PHP_FUNCTION(mcrypt_ofb) { @@ -298,7 +298,7 @@ PHP_FUNCTION(mcrypt_ofb) RETURN_STRINGL(ndata, nsize, 0); } -/* proto mcrypt_cfb(int cipher, string key, string data, int mode, string iv) +/* proto string mcrypt_cfb(int cipher, string key, string data, int mode, string iv) CFB crypt/decrypt data using key key with cipher cipher starting with iv */ PHP_FUNCTION(mcrypt_cfb) { @@ -320,7 +320,7 @@ PHP_FUNCTION(mcrypt_cfb) } -/* proto mcrypt_cbc(int cipher, string key, string data, int mode [,string iv]) +/* proto string mcrypt_cbc(int cipher, string key, string data, int mode [,string iv]) CBC crypt/decrypt data using key key with cipher cipher using optional iv */ PHP_FUNCTION(mcrypt_cbc) { @@ -349,7 +349,7 @@ PHP_FUNCTION(mcrypt_cbc) RETURN_STRINGL(ndata, nsize, 0); } -/* proto mcrypt_ecb(int cipher, string key, string data, int mode) +/* proto string mcrypt_ecb(int cipher, string key, string data, int mode) ECB crypt/decrypt data using key key with cipher cipher */ PHP_FUNCTION(mcrypt_ecb) { diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index 1ba76db0c3..04c4ceadf8 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -67,14 +67,14 @@ static PHP_MINIT_FUNCTION(mhash) return SUCCESS; } -/* proto mhash_count() +/* proto int mhash_count() get the number of available hashes */ PHP_FUNCTION(mhash_count) { RETURN_LONG(mhash_count()); } -/* proto mhash_get_block_size(int hash) +/* proto int mhash_get_block_size(int hash) get the block size of hash */ PHP_FUNCTION(mhash_get_block_size) { @@ -89,7 +89,7 @@ PHP_FUNCTION(mhash_get_block_size) RETURN_LONG(mhash_get_block_size((*hash)->value.lval)); } -/* proto mhash_get_hash_name(int hash) +/* proto string mhash_get_hash_name(int hash) get the name of hash */ PHP_FUNCTION(mhash_get_hash_name) { @@ -111,7 +111,7 @@ PHP_FUNCTION(mhash_get_hash_name) } } -/* proto mhash(int hash, string data) +/* proto string mhash(int hash, string data) hash data with hash */ PHP_FUNCTION(mhash) { |