/PHP-5.4/ext/mcrypt/tests/ |
H A D | mcrypt_cbc_error.phpt | 2 Test mcrypt_cbc() function : error conditions 17 echo "*** Testing mcrypt_cbc() : error conditions ***\n"; 20 //Test mcrypt_cbc with one more than the expected number of arguments 28 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) ); 30 // Testing mcrypt_cbc with one less than the expected number of arguments 35 var_dump( mcrypt_cbc($cipher, $key, $data) ); 40 *** Testing mcrypt_cbc() : error conditions *** 42 -- Testing mcrypt_cbc() function with more than expected no. of arguments -- 44 Warning: mcrypt_cbc() expects at most 5 parameters, 6 given in %s on line %d 47 -- Testing mcrypt_cbc() function with less than expected no. of arguments -- [all …]
|
H A D | mcrypt_cbc_variation1.phpt | 2 Test mcrypt_cbc() function : usage variation 17 echo "*** Testing mcrypt_cbc() : usage variation ***\n"; 124 *** Testing mcrypt_cbc() : usage variation *** 127 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 131 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 135 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 139 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 143 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 147 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) 151 Error: 2 - mcrypt_cbc(): Module initialization failed, %s(%d) [all …]
|
H A D | mcrypt_cbc_variation5.phpt | 2 Test mcrypt_cbc() function : usage variation 17 echo "*** Testing mcrypt_cbc() : usage variation ***\n"; 116 var_dump( bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $value)) ); 124 *** Testing mcrypt_cbc() : usage variation *** 127 Error: 2 - mcrypt_cbc(): The IV parameter must be as long as the blocksize, %s(%d) 163 Error: 2 - mcrypt_cbc() expects parameter 5 to be string, array given, %s(%d) 167 Error: 2 - mcrypt_cbc() expects parameter 5 to be string, array given, %s(%d) 171 Error: 2 - mcrypt_cbc() expects parameter 5 to be string, array given, %s(%d) 175 Error: 2 - mcrypt_cbc() expects parameter 5 to be string, array given, %s(%d) 215 Error: 2 - mcrypt_cbc() expects parameter 5 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_cbc_3des_encrypt.phpt | 2 Test mcrypt_cbc() function : basic functionality 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_cbc() : basic functionality ***\n"; 41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv))); 48 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv))); 53 *** Testing mcrypt_cbc() : basic functionality *** 68 Warning: mcrypt_cbc(): Size of key is too large for this algorithm in %s on line %d 75 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d 83 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d
|
H A D | mcrypt_cbc.phpt | 2 mcrypt_cbc 12 $enc_data = mcrypt_cbc($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 18 mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT); 23 Warning: mcrypt_cbc(): Attempt to use an empty IV, which is NOT recommend in %s on line %d
|
H A D | mcrypt_cbc_3des_decrypt.phpt | 2 Test mcrypt_cbc() function : basic functionality 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_cbc() : basic functionality ***\n"; 54 special_var_dump(mcrypt_cbc($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv)); 61 special_var_dump(mcrypt_cbc($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i])); 70 *** Testing mcrypt_cbc() : basic functionality *** 85 Warning: mcrypt_cbc(): Size of key is too large for this algorithm in %s on line %d 92 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d 100 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d
|
H A D | mcrypt_cbc_variation2.phpt | 2 Test mcrypt_cbc() function : usage variation 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_cbc() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $value, $data, $mode, $iv))); 124 *** Testing mcrypt_cbc() : usage variation *** 154 Error: 2 - mcrypt_cbc() expects parameter 2 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_cbc() expects parameter 2 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_cbc() expects parameter 2 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_cbc() expects parameter 2 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_cbc() expects parameter 2 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_cbc_variation3.phpt | 2 Test mcrypt_cbc() function : usage variation 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_cbc() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $value, $mode, $iv))); 124 *** Testing mcrypt_cbc() : usage variation *** 154 Error: 2 - mcrypt_cbc() expects parameter 3 to be string, array given, %s(%d) 158 Error: 2 - mcrypt_cbc() expects parameter 3 to be string, array given, %s(%d) 162 Error: 2 - mcrypt_cbc() expects parameter 3 to be string, array given, %s(%d) 166 Error: 2 - mcrypt_cbc() expects parameter 3 to be string, array given, %s(%d) 197 Error: 2 - mcrypt_cbc() expects parameter 3 to be string, object given, %s(%d) [all …]
|
H A D | mcrypt_rijndael128_128BitKey.phpt | 21 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 56 $res = mcrypt_cbc($cipher, $key, $res, MCRYPT_DECRYPT, $iv); 64 $res = mcrypt_cbc($cipher, $key, $data, $mode, $iv); 97 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d 105 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d 113 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d 125 Warning: mcrypt_cbc(): The IV parameter must be as long as the blocksize in %s on line %d
|
H A D | mcrypt_cbc_variation4.phpt | 2 Test mcrypt_cbc() function : usage variation 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 17 echo "*** Testing mcrypt_cbc() : usage variation ***\n"; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $value, $iv))); 124 *** Testing mcrypt_cbc() : usage variation ***
|
H A D | mcrypt_ecb_3des_decrypt.phpt | 2 Test mcrypt_cbc() function : basic functionality
|
H A D | mcrypt_rijndael128_256BitKey.phpt | 21 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
|
/PHP-5.4/ext/mcrypt/ |
H A D | php_mcrypt.h | 35 PHP_FUNCTION(mcrypt_cbc);
|
H A D | mcrypt.c | 242 PHP_FE(mcrypt_cbc, arginfo_mcrypt_cbc) 1329 PHP_FUNCTION(mcrypt_cbc) in PHP_FUNCTION() argument
|