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)
{
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)
{
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)
{
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)
{
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)
{
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)
{
}
-/* 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)
{
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)
{
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)
{
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)
{
}
}
-/* proto mhash(int hash, string data)
+/* proto string mhash(int hash, string data)
hash data with hash */
PHP_FUNCTION(mhash)
{