/PHP-5.4/ext/mcrypt/tests/ |
H A D | mcrypt_ecb_error.phpt | 2 Test mcrypt_ecb() function : error conditions 17 echo "*** Testing mcrypt_ecb() : error conditions ***\n"; 20 //Test mcrypt_ecb with one more than the expected number of arguments 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 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 -- [all …]
|
H A D | mcrypt_ecb_variation1.phpt | 2 Test mcrypt_ecb() function : usage variation 17 echo "*** Testing mcrypt_ecb() : usage variation ***\n"; 124 *** Testing mcrypt_ecb() : usage variation *** 127 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 131 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 135 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 139 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 143 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 147 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) 151 Error: 2 - mcrypt_ecb(): Module initialization failed, %s(%d) [all …]
|
H A D | mcrypt_ecb_3des_encrypt.phpt | 2 Test mcrypt_ecb() function : basic functionality 11 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : basic functionality ***\n"; 42 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv))); 49 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv))); 54 *** Testing mcrypt_ecb() : basic functionality *** 69 Warning: mcrypt_ecb(): Size of key is too large for this algorithm in %s on line %d
|
H A D | mcrypt_ecb.phpt | 2 mcrypt_ecb 12 $enc_data = mcrypt_ecb($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 18 mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT);
|
H A D | mcrypt_ecb_variation2.phpt | 2 Test mcrypt_ecb() function : usage variation 11 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_ecb($cipher, $value, $data, $mode, $iv))); 124 *** Testing mcrypt_ecb() : usage variation *** 154 Error: 2 - mcrypt_ecb() expects parameter 2 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_ecb() expects parameter 2 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_ecb() expects parameter 2 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_ecb() expects parameter 2 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_ecb() expects parameter 2 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_ecb_variation3.phpt | 2 Test mcrypt_ecb() function : usage variation 11 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $value, $mode, $iv))); 124 *** Testing mcrypt_ecb() : usage variation *** 154 Error: 2 - mcrypt_ecb() expects parameter 3 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_ecb() expects parameter 3 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_ecb() expects parameter 3 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_ecb() expects parameter 3 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_ecb() expects parameter 3 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_ecb_variation5.phpt | 2 Test mcrypt_ecb() function : usage variation 11 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : usage variation ***\n"; 116 var_dump(bin2hex( mcrypt_ecb($cipher, $key, $data, $mode, $value))); 124 *** Testing mcrypt_ecb() : usage variation *** 154 Error: 2 - mcrypt_ecb() expects parameter 5 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_ecb() expects parameter 5 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_ecb() expects parameter 5 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_ecb() expects parameter 5 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_ecb() expects parameter 5 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_ecb_3des_decrypt.phpt | 11 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : basic functionality ***\n"; 53 special_var_dump(mcrypt_ecb($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv)); 60 special_var_dump(mcrypt_ecb($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i])); 69 *** Testing mcrypt_ecb() : basic functionality *** 84 Warning: mcrypt_ecb(): Size of key is too large for this algorithm in %s on line %d
|
H A D | mcrypt_ecb_variation4.phpt | 2 Test mcrypt_ecb() function : usage variation 11 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_ecb() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $value, $iv))); 124 *** Testing mcrypt_ecb() : usage variation ***
|
H A D | mcrypt_rijndael128_256BitKey.phpt | 26 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
|
/PHP-5.4/ext/mcrypt/ |
H A D | php_mcrypt.h | 34 PHP_FUNCTION(mcrypt_ecb);
|
H A D | mcrypt.c | 241 PHP_FE(mcrypt_ecb, arginfo_mcrypt_ecb) 1313 PHP_FUNCTION(mcrypt_ecb) in PHP_FUNCTION() argument
|