/PHP-5.6/ext/mcrypt/tests/ |
H A D | mcrypt_rijndael128_256BitKey.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 17 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 21 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 26 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 27 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 34 $cipher = MCRYPT_RIJNDAEL_128; 46 // rijndael128 is a block cipher of 128 bits (16 bytes) 52 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv); [all …]
|
H A D | mcrypt_ecb.phpt | 9 $cipher = MCRYPT_RIJNDAEL_128; 11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_ECB), MCRYPT_RAND); 12 $enc_data = mcrypt_ecb($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 17 // a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV 18 mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT);
|
H A D | mcrypt_ofb.phpt | 9 $cipher = MCRYPT_RIJNDAEL_128; 11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_ECB), MCRYPT_RAND); 12 $enc_data = mcrypt_ofb($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_ofb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 17 // a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV 18 mcrypt_ofb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv);
|
H A D | mcrypt_cbc.phpt | 9 $cipher = MCRYPT_RIJNDAEL_128; 11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_ECB), MCRYPT_RAND); 12 $enc_data = mcrypt_cbc($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 17 // a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV 18 var_dump(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT));
|
H A D | mcrypt_cfb.phpt | 9 $cipher = MCRYPT_RIJNDAEL_128; 11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_CFB), MCRYPT_RAND); 12 $enc_data = mcrypt_cfb($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv); 15 echo trim(mcrypt_cfb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n"; 17 // a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV 18 var_dump(mcrypt_cfb($cipher, $key, $enc_data, MCRYPT_DECRYPT));
|
H A D | mcrypt_decrypt.phpt | 10 $cipher = MCRYPT_RIJNDAEL_128; 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"; 18 // a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV 19 var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC));
|
H A D | mcrypt_decrypt_error.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 22 $cipher = 'string_val'; 28 var_dump( mcrypt_decrypt($cipher, $key, $data, $mode, $iv, $extra_arg) ); 32 $cipher = 'string_val'; 35 var_dump( mcrypt_decrypt($cipher, $key, $data) );
|
H A D | mcrypt_ecb_error.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 24 $cipher = 10; 30 var_dump( mcrypt_ecb($cipher, $key, $data, $mode, $iv, $extra_arg) ); 34 $cipher = 10; 37 var_dump( mcrypt_ecb($cipher, $key, $data) );
|
H A D | mcrypt_encrypt_error.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 22 $cipher = 'string_val'; 28 var_dump( mcrypt_encrypt($cipher, $key, $data, $mode, $iv, $extra_arg) ); 32 $cipher = 'string_val'; 35 var_dump( mcrypt_encrypt($cipher, $key, $data) );
|
H A D | mcrypt_cbc_error.phpt | 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 22 $cipher = 10; 28 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) ); 32 $cipher = 10; 35 var_dump( mcrypt_cbc($cipher, $key, $data) );
|
H A D | mcrypt_ecb_3des_encrypt.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 22 $cipher = MCRYPT_TRIPLEDES; 33 // tripledes is a block cipher of 64 bits (8 bytes) 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_rijndael128_128BitKey.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 17 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 21 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_RIJNDAEL_128; 40 // rijndael128 is a block cipher of 128 bits (16 bytes) 54 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv); 56 $res = mcrypt_cbc($cipher, $key, $res, MCRYPT_DECRYPT, $iv); 64 $res = mcrypt_cbc($cipher, $key, $data, $mode, $iv); [all …]
|
H A D | mcrypt_decrypt_3des_ecb.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 21 $cipher = MCRYPT_3DES; 37 // tripledes is a block cipher of 64 bits (8 bytes) 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_ecb_3des_decrypt.phpt | 13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) 14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 22 $cipher = MCRYPT_TRIPLEDES; 39 // tripledes is a block cipher of 64 bits (8 bytes) 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_encrypt_3des_ecb.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 19 $cipher = MCRYPT_TRIPLEDES; 34 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode))); 48 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $iv)));
|
H A D | mcrypt_decrypt_3des_cbc.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 21 $cipher = MCRYPT_3DES; 37 // tripledes is a block cipher of 64 bits (8 bytes) 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_encrypt_3des_cbc.phpt | 11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 26 $cipher = MCRYPT_TRIPLEDES; 37 // tripledes is a block cipher of 64 bits (8 bytes) 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_cbc_3des_encrypt.phpt | 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 20 $cipher = MCRYPT_TRIPLEDES; 30 // tripledes is a block cipher of 64 bits (8 bytes) 41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv))); 48 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
|
H A D | mcrypt_cbc_3des_decrypt.phpt | 11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 20 $cipher = MCRYPT_TRIPLEDES; 37 // tripledes is a block cipher of 64 bits (8 bytes) 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]));
|
H A D | bug8040.phpt | 18 printf ("cipher=".CIPHER. " mode1=".MODE2. " mode2=". MODE3."\n"); 24 cipher=twofish mode1=cbc mode2=MCRYPT_CBC
|
H A D | mcrypt_ecb_variation4.phpt | 13 /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) 14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 31 $cipher = MCRYPT_TRIPLEDES; 118 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $value, $iv)));
|
H A D | mcrypt_decrypt_variation3.phpt | 11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i… 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_TRIPLEDES; 116 var_dump(bin2hex(mcrypt_decrypt($cipher, $key, $value, $mode, $iv)));
|
/PHP-5.6/ext/mcrypt/ |
H A D | mcrypt.c | 55 ZEND_ARG_INFO(0, cipher) 169 ZEND_ARG_INFO(0, cipher) 174 ZEND_ARG_INFO(0, cipher) 179 ZEND_ARG_INFO(0, cipher) 184 ZEND_ARG_INFO(0, cipher) 188 ZEND_ARG_INFO(0, cipher) 543 cipher, in PHP_FUNCTION() 1036 char *cipher; in PHP_FUNCTION() local 1065 char *cipher; in PHP_FUNCTION() local 1094 char *cipher; in PHP_FUNCTION() local [all …]
|
/PHP-5.6/ext/openssl/ |
H A D | config0.m4 | 11 PHP_ARG_WITH(system-ciphers, whether to use system default cipher list instead of hardcoded value, 12 [ --with-system-ciphers OPENSSL: Use system default cipher list instead of hardcoded value], no,… 33 …AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value…
|
/PHP-5.6/ext/openssl/tests/ |
H A D | openssl_decrypt_error.phpt | 33 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d 37 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d 40 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d 43 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d
|