Lines Matching refs:mcrypt_cbc
2 Test mcrypt_cbc() function : error conditions
11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
17 echo "*** Testing mcrypt_cbc() : error conditions ***\n";
20 //Test mcrypt_cbc with one more than the expected number of arguments
21 echo "\n-- Testing mcrypt_cbc() function with more than expected no. of arguments --\n";
28 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) );
30 // Testing mcrypt_cbc with one less than the expected number of arguments
31 echo "\n-- Testing mcrypt_cbc() function with less than expected no. of arguments --\n";
35 var_dump( mcrypt_cbc($cipher, $key, $data) );
40 *** Testing mcrypt_cbc() : error conditions ***
42 -- Testing mcrypt_cbc() function with more than expected no. of arguments --
44 Warning: mcrypt_cbc() expects at most 5 parameters, 6 given in %s on line %d
47 -- Testing mcrypt_cbc() function with less than expected no. of arguments --
49 Warning: mcrypt_cbc() expects at least 4 parameters, 3 given in %s on line %d