cvs: php4 /ext/mcrypt/ mcrypt.c

From: Date: Fri, 26 May 2000 17:19:53 +0000
Subject: cvs: php4 /ext/mcrypt/ mcrypt.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15805@lists.php.net to get a copy of this message
hholzgra Fri May 26 10:19:53 2000 EDT Modified files: /php4/ext/mcrypt mcrypt.c Log: protos fixed Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.28 php4/ext/mcrypt/mcrypt.c:1.29 --- php4/ext/mcrypt/mcrypt.c:1.28 Tue May 23 15:16:57 2000 +++ php4/ext/mcrypt/mcrypt.c Fri May 26 10:19:53 2000 @@ -176,7 +176,7 @@ 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 @@ } 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ RETURN_STRINGL(ndata, nsize, 0); } +/* }}} */ #endif

« previous php.version4 (#15805) next »