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