cvs: /php3/functions mcrypt.c
| From: | Egon Schmid | Date: | Thu, 29 Jul 1999 21:07:18 +0000 |
| Subject: | cvs: /php3/functions mcrypt.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9335@lists.php.net to get a copy of this message | ||
eschmid Thu Jul 29 17:07:18 1999 EDT
Modified files:
/php3/functions mcrypt.c
Log:
Some incomplete prototypes fixed.
Index: php3/functions/mcrypt.c
diff -u php3/functions/mcrypt.c:1.9 php3/functions/mcrypt.c:1.10
--- php3/functions/mcrypt.c:1.9 Wed Jun 16 03:58:21 1999
+++ php3/functions/mcrypt.c Thu Jul 29 17:07:17 1999
@@ -172,7 +172,7 @@
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)
{
@@ -216,8 +216,9 @@
}
RETURN_STRINGL(iv, size->value.lval, 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)
{
@@ -239,8 +240,9 @@
RETURN_STRING(nstr, 0);
}
+/* }}} */
-/* 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)
{
@@ -254,8 +256,9 @@
RETURN_LONG(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)
{
@@ -269,8 +272,9 @@
RETURN_LONG(get_block_size(cipher->value.lval));
}
+/* }}} */
-/* proto mcrypt_ofb(int cipher, string key, string data, int mode, string iv)
+/* {{{ proto int 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)
{
@@ -290,8 +294,9 @@
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-/* proto mcrypt_cfb(int cipher, string key, string data, int mode, string iv)
+/* {{{ proto int 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)
{
@@ -311,9 +316,9 @@
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-
-/* proto mcrypt_cbc(int cipher, string key, string data, int mode [,string iv])
+/* {{{ proto int 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)
{
@@ -342,8 +347,9 @@
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
-/* proto mcrypt_ecb(int cipher, string key, string data, int mode)
+/* {{{ proto int mcrypt_ecb(int cipher, string key, string data, int mode)
ECB crypt/decrypt data using key key with cipher cipher */
PHP_FUNCTION(mcrypt_ecb)
{
@@ -362,5 +368,6 @@
RETURN_STRINGL(ndata, nsize, 0);
}
+/* }}} */
#endif