Home
last modified time | relevance | path

Searched refs:mode (Results 126 – 150 of 750) sorted by path

12345678910>>...30

/PHP-5.5/ext/mcrypt/tests/
H A Dmcrypt_cbc_error.phpt11 /* 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 Dmcrypt_cbc_variation1.phpt11 /* 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 Dmcrypt_cbc_variation2.phpt11 /* 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 Dmcrypt_cbc_variation3.phpt11 /* 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 Dmcrypt_cbc_variation4.phpt11 /* 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 Dmcrypt_cbc_variation5.phpt11 /* 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 Dmcrypt_decrypt.phpt9 $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 Dmcrypt_decrypt_3des_cbc.phpt11 /* 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 Dmcrypt_decrypt_3des_ecb.phpt11 /* 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 Dmcrypt_decrypt_error.phpt11 /* 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 Dmcrypt_decrypt_variation1.phpt11 /* 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 Dmcrypt_decrypt_variation2.phpt11 /* 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 Dmcrypt_decrypt_variation3.phpt11 /* 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 Dmcrypt_decrypt_variation4.phpt11 /* 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 Dmcrypt_decrypt_variation5.phpt11 /* 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 Dmcrypt_ecb_3des_decrypt.phpt13 /* 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 Dmcrypt_ecb_3des_encrypt.phpt13 /* 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 Dmcrypt_ecb_error.phpt13 /* 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 Dmcrypt_ecb_variation1.phpt13 /* 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 Dmcrypt_ecb_variation2.phpt13 /* 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 Dmcrypt_ecb_variation3.phpt13 /* 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 Dmcrypt_ecb_variation4.phpt13 /* 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 Dmcrypt_ecb_variation5.phpt13 /* 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 Dmcrypt_encrypt_3des_cbc.phpt11 /* 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 Dmcrypt_encrypt_3des_ecb.phpt11 /* 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)));

Completed in 28 milliseconds

12345678910>>...30