/PHP-5.5/ |
H A D | NEWS | 5884 . Added support for OpenSSL digest and cipher functions. (Dmitry)
|
/PHP-5.5/ext/fileinfo/tests/ |
H A D | magic | 8744 >>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher) 8745 >>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher) 8746 >>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher) 8747 >>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher) 8748 >>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher) 8749 >>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher) 8750 >>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher) 8751 >>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher) 8752 >>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher) 8753 >>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher)
|
/PHP-5.5/ext/mcrypt/ |
H A D | mcrypt.c | 54 ZEND_ARG_INFO(0, cipher) 168 ZEND_ARG_INFO(0, cipher) 173 ZEND_ARG_INFO(0, cipher) 178 ZEND_ARG_INFO(0, cipher) 183 ZEND_ARG_INFO(0, cipher) 187 ZEND_ARG_INFO(0, cipher) 574 cipher, in PHP_FUNCTION() 1067 char *cipher; in PHP_FUNCTION() local 1096 char *cipher; in PHP_FUNCTION() local 1125 char *cipher; in PHP_FUNCTION() local [all …]
|
H A D | mcrypt_filter.c | 155 const char *cipher = filtername + sizeof("mcrypt.") - 1; in php_mcrypt_filter_create() local 166 cipher += sizeof("de") - 1; in php_mcrypt_filter_create() 210 mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir); in php_mcrypt_filter_create()
|
/PHP-5.5/ext/mcrypt/tests/ |
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_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 mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT);
|
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 | 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_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_cbc_variation1.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 112 // loop through each element of the array for cipher
|
H A D | mcrypt_cbc_variation2.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_TRIPLEDES; 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) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_TRIPLEDES; 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) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_TRIPLEDES; 116 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $value, $iv)));
|
H A D | mcrypt_cbc_variation5.phpt | 11 /* Prototype : string mcrypt_cbc(string cipher, string key, string data, int mode, string iv) 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 29 $cipher = MCRYPT_TRIPLEDES; 116 var_dump( bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $value)) );
|
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 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 mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC);
|
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_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_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_decrypt_variation1.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 112 // loop through each element of the array for cipher
|
H A D | mcrypt_decrypt_variation2.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, $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… 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)));
|
H A D | mcrypt_decrypt_variation4.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( mcrypt_decrypt($cipher, $key, $data, $value, $iv) );
|
H A D | mcrypt_decrypt_variation5.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, $data, $mode, $value)));
|
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);
|