/PHP-5.5/ext/mcrypt/tests/ |
H A D | mcrypt_encrypt_error.phpt | 2 Test mcrypt_encrypt() function : error conditions 17 echo "*** Testing mcrypt_encrypt() : error conditions ***\n"; 20 //Test mcrypt_encrypt with one more than the expected number of arguments 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 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 -- [all …]
|
H A D | mcrypt_encrypt_variation1.phpt | 2 Test mcrypt_encrypt() function : usage variation - different types for cipher 17 echo "*** Testing mcrypt_encrypt() : usage variation ***\n"; 124 *** Testing mcrypt_encrypt() : usage variation *** 127 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 131 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 135 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 139 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 143 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 147 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 151 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) [all …]
|
H A D | mcrypt_encrypt_variation4.phpt | 2 Test mcrypt_encrypt() function : usage variation 17 echo "*** Testing mcrypt_encrypt() : usage variation ***\n"; 124 *** Testing mcrypt_encrypt() : usage variation *** 127 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 131 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 135 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 139 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 143 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 147 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) 151 Error: 2 - mcrypt_encrypt(): Module initialization failed, %s(%d) [all …]
|
H A D | mcrypt_encrypt_variation5.phpt | 2 Test mcrypt_encrypt() function : usage variation 17 echo "*** Testing mcrypt_encrypt() : usage variation ***\n"; 117 var_dump( bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $value))); 125 *** Testing mcrypt_encrypt() : usage variation *** 128 Error: 2 - mcrypt_encrypt(): The IV parameter must be as long as the blocksize, %s(%d) 164 Error: 2 - mcrypt_encrypt() expects parameter 5 to be string, array given, %s(%d) 168 Error: 2 - mcrypt_encrypt() expects parameter 5 to be string, array given, %s(%d) 172 Error: 2 - mcrypt_encrypt() expects parameter 5 to be string, array given, %s(%d) 176 Error: 2 - mcrypt_encrypt() expects parameter 5 to be string, array given, %s(%d) 216 Error: 2 - mcrypt_encrypt() expects parameter 5 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_encrypt_3des_cbc.phpt | 2 Test mcrypt_encrypt() function : TripleDES functionality 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 17 echo "*** Testing mcrypt_encrypt() : TripleDES functionality ***\n"; 49 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv))); 56 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv))); 62 *** Testing mcrypt_encrypt() : TripleDES functionality *** 77 Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in %s on line %d 84 Warning: mcrypt_encrypt(): The IV parameter must be as long as the blocksize in %s on line %d 92 Warning: mcrypt_encrypt(): The IV parameter must be as long as the blocksize in %s on line %d
|
H A D | mcrypt_encrypt_3des_ecb.phpt | 2 Test mcrypt_encrypt() function : TripleDES functionality 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 17 echo "*** Testing mcrypt_encrypt() : TripleDES functionality ***\n"; 34 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode))); 48 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv))); 54 *** Testing mcrypt_encrypt() : TripleDES functionality *** 69 Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in %s on line %d
|
H A D | mcrypt_encrypt_variation3.phpt | 2 Test mcrypt_encrypt() function : usage variation 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 17 echo "*** Testing mcrypt_encrypt() : usage variation ***\n"; 116 var_dump( bin2hex(mcrypt_encrypt($cipher, $key, $value, $mode, $iv) )); 124 *** Testing mcrypt_encrypt() : usage variation *** 154 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_encrypt_variation2.phpt | 2 Test mcrypt_encrypt() function : usage variation 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 17 echo "*** Testing mcrypt_encrypt() : usage variation ***\n"; 116 var_dump( bin2hex(mcrypt_encrypt($cipher, $value, $data, $mode, $iv) )); 124 *** Testing mcrypt_encrypt() : usage variation *** 154 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, object given, %s(%d) [all …]
|
H A D | bug46010.phpt | 8 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB))); 9 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "a"))); 10 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "12345678")));
|
H A D | bug43143.phpt | 11 $data = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $mkey, $input, MCRYPT_MODE_ECB); 15 $data = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $mkey, $input, MCRYPT_MODE_CFB); 22 Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in %sbug43143.php on …
|
H A D | mcrypt_rijndael128_256BitKey.phpt | 2 Test mcrypt_encrypt() function : TripleDES functionality 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 52 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv); 82 Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in %s on line %d
|
H A D | mcrypt_rijndael128_128BitKey.phpt | 2 Test mcrypt_encrypt() function : TripleDES functionality 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 54 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv);
|
H A D | mcrypt_decrypt.phpt | 13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv);
|
/PHP-5.5/ext/mcrypt/ |
H A D | php_mcrypt.h | 47 PHP_FUNCTION(mcrypt_encrypt);
|
H A D | mcrypt.c | 253 PHP_FE(mcrypt_encrypt, arginfo_mcrypt_encrypt) 1300 PHP_FUNCTION(mcrypt_encrypt) in PHP_FUNCTION() argument
|