2 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
3 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
4 * Source code: ext/mcrypt/mcrypt.c
8 echo "*** Testing mcrypt_cbc() : error conditions ***\n";
11 //Test mcrypt_cbc with one more than the expected number of arguments
12 echo "\n-- Testing mcrypt_cbc() function with more than expected no. of arguments --\n";
19 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) );
21 // Testing mcrypt_cbc with one less than the expected number of arguments
22 echo "\n-- Testing mcrypt_cbc() function with less than expected no. of arguments --\n";
26 var_dump( mcrypt_cbc($cipher, $key, $data) );