Lines Matching refs:mcrypt_ecb
2 Test mcrypt_ecb() function : error conditions
13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
19 echo "*** Testing mcrypt_ecb() : error conditions ***\n";
22 //Test mcrypt_ecb with one more than the expected number of arguments
23 echo "\n-- Testing mcrypt_ecb() function with more than expected no. of arguments --\n";
30 var_dump( mcrypt_ecb($cipher, $key, $data, $mode, $iv, $extra_arg) );
32 // Testing mcrypt_ecb with one less than the expected number of arguments
33 echo "\n-- Testing mcrypt_ecb() function with less than expected no. of arguments --\n";
37 var_dump( mcrypt_ecb($cipher, $key, $data) );
42 *** Testing mcrypt_ecb() : error conditions ***
44 -- Testing mcrypt_ecb() function with more than expected no. of arguments --
46 Warning: mcrypt_ecb() expects at most 5 parameters, 6 given in %s on line %d
49 -- Testing mcrypt_ecb() function with less than expected no. of arguments --
51 Warning: mcrypt_ecb() expects at least 4 parameters, 3 given in %s on line %d