Home
last modified time | relevance | path

Searched refs:mcrypt_encrypt (Results 1 – 18 of 18) sorted by relevance

/PHP-5.6/ext/mcrypt/tests/
H A Dmcrypt_encrypt_error.phpt2 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 Dmcrypt_encrypt_variation1.phpt2 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 Dmcrypt_encrypt_variation4.phpt2 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 Dmcrypt_encrypt_variation2.phpt2 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 ***
163 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d)
167 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d)
171 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d)
175 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, array given, %s(%d)
215 Error: 2 - mcrypt_encrypt() expects parameter 2 to be string, object given, %s(%d)
[all …]
H A Dmcrypt_encrypt_variation5.phpt2 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";
117 var_dump( bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $value)));
125 *** Testing mcrypt_encrypt() : usage variation ***
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 Dmcrypt_encrypt_3des_cbc.phpt2 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 ***
68 Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supp…
73 Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 sup…
81 Warning: mcrypt_encrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 sup…
88 Warning: mcrypt_encrypt(): Received initialization vector of size 4, but size 8 is required for thi…
[all …]
H A Dmcrypt_encrypt_3des_ecb.phpt2 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 ***
60 Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supp…
65 Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 sup…
73 Warning: mcrypt_encrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 sup…
H A Dmcrypt_encrypt_variation3.phpt2 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 Dbug46010.phpt9 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, $key, "data", MCRYPT_MODE_ECB)));
10 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, $key, "data", MCRYPT_MODE_ECB, "a")));
11 var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, $key, "data", MCRYPT_MODE_ECB, "12345678")));
H A Dbug43143.phpt11 $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(): Encryption mode requires an initialization vector of size 32 in %sbug431…
H A Dbug70625.phpt2 Bug #70625: mcrypt_encrypt() : won't return data when no IV was specified under RC4
9 $ciphertext = mcrypt_encrypt(MCRYPT_ARCFOUR, $key, 'payload', MCRYPT_MODE_STREAM);
H A Dmcrypt_rijndael128_256BitKey.phpt2 Test mcrypt_encrypt() function : AES 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);
66 Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of sizes 16, 2…
78 Warning: mcrypt_encrypt(): Key of size 30 not supported by this algorithm. Only keys of sizes 16, 2…
90 Warning: mcrypt_encrypt(): Key of size 40 not supported by this algorithm. Only keys of sizes 16, 2…
H A Dmcrypt_rijndael128_128BitKey.phpt2 Test mcrypt_encrypt() function : AES 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);
79 Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24…
89 Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24…
99 Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of sizes 16, 24…
H A Dmcrypt_decrypt.phpt13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv);
/PHP-5.6/ext/mcrypt/
H A Dphp_mcrypt.h47 PHP_FUNCTION(mcrypt_encrypt);
H A Dmcrypt.c254 PHP_FE(mcrypt_encrypt, arginfo_mcrypt_encrypt)
1335 PHP_FUNCTION(mcrypt_encrypt) in PHP_FUNCTION() argument
/PHP-5.6/
H A DUPGRADING60 The mcrypt_encrypt(), mcrypt_decrypt() and mcrypt_{MODE}() functions no
H A DNEWS1009 . Fixed bug #70625 (mcrypt_encrypt() won't return data when no IV was
2232 in mcrypt_encrypt, mcrypt_decrypt and the deprecated mode functions.

Completed in 76 milliseconds