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