summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-26 17:20:36 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-26 17:20:36 +0000
commit7a2e01c5928711c2ded39b50bc3af9f5b04ce426 (patch)
treef385d6851a30c549b45a60d2bf1d028d90dd54e3 /ext
parent62227a03b1ce8e2f5fb5fb24b67ae856a69dd874 (diff)
downloadphp-git-7a2e01c5928711c2ded39b50bc3af9f5b04ce426.tar.gz
protos fixed
Diffstat (limited to 'ext')
-rw-r--r--ext/mcrypt/mcrypt.c24
-rw-r--r--ext/mhash/mhash.c12
2 files changed, 24 insertions, 12 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index d2fb868603..e32c9422cd 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -176,7 +176,7 @@ typedef enum {
RAND
} iv_source;
-/* proto string 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)
{
@@ -223,8 +223,9 @@ PHP_FUNCTION(mcrypt_create_iv)
}
RETURN_STRINGL(iv, n, 0);
}
+/* }}} */
-/* proto string 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)
{
@@ -246,8 +247,9 @@ PHP_FUNCTION(mcrypt_get_cipher_name)
RETURN_FALSE;
}
+/* }}} */
-/* proto int 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)
{
@@ -261,8 +263,9 @@ PHP_FUNCTION(mcrypt_get_key_size)
RETURN_LONG(mcrypt_get_key_size((*cipher)->value.lval));
}
+/* }}} */
-/* proto int 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)
{
@@ -276,8 +279,9 @@ PHP_FUNCTION(mcrypt_get_block_size)
RETURN_LONG(mcrypt_get_block_size((*cipher)->value.lval));
}
+/* }}} */
-/* proto string 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)
{
@@ -297,8 +301,9 @@ PHP_FUNCTION(mcrypt_ofb)
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-/* proto string 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)
{
@@ -318,9 +323,10 @@ PHP_FUNCTION(mcrypt_cfb)
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-/* proto string 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)
{
@@ -348,8 +354,9 @@ PHP_FUNCTION(mcrypt_cbc)
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-/* proto string 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)
{
@@ -368,5 +375,6 @@ PHP_FUNCTION(mcrypt_ecb)
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
#endif
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c
index 04c4ceadf8..fa0a65b22d 100644
--- a/ext/mhash/mhash.c
+++ b/ext/mhash/mhash.c
@@ -67,14 +67,15 @@ static PHP_MINIT_FUNCTION(mhash)
return SUCCESS;
}
-/* proto int mhash_count()
+/* {{{ proto int mhash_count()
get the number of available hashes */
PHP_FUNCTION(mhash_count)
{
RETURN_LONG(mhash_count());
}
+/* }}} */
-/* proto int 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)
{
@@ -88,8 +89,9 @@ PHP_FUNCTION(mhash_get_block_size)
RETURN_LONG(mhash_get_block_size((*hash)->value.lval));
}
+/* }}} */
-/* proto string 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)
{
@@ -110,8 +112,9 @@ PHP_FUNCTION(mhash_get_hash_name)
RETVAL_FALSE;
}
}
+/* }}} */
-/* proto string mhash(int hash, string data)
+/* {{{ proto string mhash(int hash, string data)
hash data with hash */
PHP_FUNCTION(mhash)
{
@@ -146,5 +149,6 @@ PHP_FUNCTION(mhash)
RETURN_FALSE;
}
}
+/* }}} */
#endif