diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2000-05-26 17:20:36 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2000-05-26 17:20:36 +0000 |
commit | 7a2e01c5928711c2ded39b50bc3af9f5b04ce426 (patch) | |
tree | f385d6851a30c549b45a60d2bf1d028d90dd54e3 /ext/mcrypt/mcrypt.c | |
parent | 62227a03b1ce8e2f5fb5fb24b67ae856a69dd874 (diff) | |
download | php-git-7a2e01c5928711c2ded39b50bc3af9f5b04ce426.tar.gz |
protos fixed
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r-- | ext/mcrypt/mcrypt.c | 24 |
1 files changed, 16 insertions, 8 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 |