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