/PHP-5.5/ext/mcrypt/tests/ |
H A D | mcrypt_cbc_error.phpt | 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 25 $mode = 10; 28 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) );
|
H A D | mcrypt_cbc_variation1.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 31 $mode = MCRYPT_ENCRYPT; 116 var_dump( mcrypt_cbc($value, $key, $data, $mode, $iv) );
|
H A D | mcrypt_cbc_variation2.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 31 $mode = MCRYPT_ENCRYPT; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $value, $data, $mode, $iv)));
|
H A D | mcrypt_cbc_variation3.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 31 $mode = MCRYPT_ENCRYPT; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $value, $mode, $iv)));
|
H A D | mcrypt_cbc_variation4.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 112 // loop through each element of the array for mode
|
H A D | mcrypt_cbc_variation5.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 32 $mode = MCRYPT_ENCRYPT; 116 var_dump( bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $value)) );
|
H A D | mcrypt_decrypt.phpt | 9 $mode = MCRYPT_MODE_CBC; 12 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, $mode), MCRYPT_RAND); 13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv); 16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n";
|
H A D | mcrypt_decrypt_3des_cbc.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 22 $mode = MCRYPT_MODE_CBC; 53 special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv)); 60 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
|
H A D | mcrypt_decrypt_3des_ecb.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 22 $mode = MCRYPT_MODE_ECB; 52 special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), $mode)); 59 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
|
H A D | mcrypt_decrypt_error.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 25 $mode = 'string_val'; 28 var_dump( mcrypt_decrypt($cipher, $key, $data, $mode, $iv, $extra_arg) );
|
H A D | mcrypt_decrypt_variation1.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 31 $mode = MCRYPT_MODE_ECB; 116 var_dump( mcrypt_decrypt($value, $key, $data, $mode, $iv) );
|
H A D | mcrypt_decrypt_variation2.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 31 $mode = MCRYPT_MODE_ECB; 116 var_dump( bin2hex(mcrypt_decrypt($cipher, $value, $data, $mode, $iv)));
|
H A D | mcrypt_decrypt_variation3.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 31 $mode = MCRYPT_MODE_ECB; 116 var_dump(bin2hex(mcrypt_decrypt($cipher, $key, $value, $mode, $iv)));
|
H A D | mcrypt_decrypt_variation4.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 112 // loop through each element of the array for mode
|
H A D | mcrypt_decrypt_variation5.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 32 $mode = MCRYPT_MODE_CBC; 116 var_dump(bin2hex(mcrypt_decrypt($cipher, $key, $data, $mode, $value)));
|
H A D | mcrypt_ecb_3des_decrypt.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 24 $mode = MCRYPT_DECRYPT; 55 special_var_dump(mcrypt_ecb($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv)); 62 special_var_dump(mcrypt_ecb($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
|
H A D | mcrypt_ecb_3des_encrypt.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 24 $mode = MCRYPT_ENCRYPT; 44 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv))); 51 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
|
H A D | mcrypt_ecb_error.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 27 $mode = 10; 30 var_dump( mcrypt_ecb($cipher, $key, $data, $mode, $iv, $extra_arg) );
|
H A D | mcrypt_ecb_variation1.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 33 $mode = MCRYPT_ENCRYPT; 118 var_dump( mcrypt_ecb($value, $key, $data, $mode, $iv) );
|
H A D | mcrypt_ecb_variation2.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 33 $mode = MCRYPT_ENCRYPT; 118 var_dump(bin2hex(mcrypt_ecb($cipher, $value, $data, $mode, $iv)));
|
H A D | mcrypt_ecb_variation3.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 33 $mode = MCRYPT_ENCRYPT; 118 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $value, $mode, $iv)));
|
H A D | mcrypt_ecb_variation4.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 114 // loop through each element of the array for mode
|
H A D | mcrypt_ecb_variation5.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 34 $mode = MCRYPT_ENCRYPT; 118 var_dump(bin2hex( mcrypt_ecb($cipher, $key, $data, $mode, $value)));
|
H A D | mcrypt_encrypt_3des_cbc.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 27 $mode = MCRYPT_MODE_CBC; 49 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv))); 56 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv)));
|
H A D | mcrypt_encrypt_3des_ecb.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 20 $mode = MCRYPT_MODE_ECB; 34 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode))); 44 // ivs should be ignored in ecb mode 48 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv)));
|