Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 53) sorted by relevance

123

/PHP-7.1/ext/mcrypt/tests/
H A Dmcrypt_rijndael128_256BitKey.phpt11 /* 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 Dmcrypt_ecb.phpt9 $cipher = MCRYPT_RIJNDAEL_128;
11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_ECB), MCRYPT_RAND);
12 $enc_data = mcrypt_encrypt($cipher, $key, $secret, MCRYPT_MODE_ECB, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_ECB, $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_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_ECB);
H A Dmcrypt_ofb.phpt9 $cipher = MCRYPT_RIJNDAEL_128;
11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_OFB), MCRYPT_RAND);
12 $enc_data = mcrypt_decrypt($cipher, $key, $secret, MCRYPT_MODE_OFB, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB, $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_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB);
H A Dmcrypt_cbc.phpt9 $cipher = MCRYPT_RIJNDAEL_128;
11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_CBC), MCRYPT_RAND);
12 $enc_data = mcrypt_encrypt($cipher, $key, $secret, MCRYPT_MODE_CBC, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC, $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_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC));
H A Dmcrypt_cfb.phpt9 $cipher = MCRYPT_RIJNDAEL_128;
11 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, MCRYPT_MODE_CFB), MCRYPT_RAND);
12 $enc_data = mcrypt_encrypt($cipher, $key, $secret, MCRYPT_MODE_CFB, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB, $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_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB));
H A Dmcrypt_encrypt_error.phpt11 /* 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 Dmcrypt_decrypt_error.phpt11 /* 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 Dmcrypt_rijndael128_128BitKey.phpt11 /* 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
16 …/* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string …
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);
62 $res = mcrypt_decrypt($cipher, $key, $res, MCRYPT_MODE_CBC, $iv);
H A Dmcrypt_decrypt.phpt10 $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 Dmcrypt_ecb_3des_encrypt.phpt13 /* 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
19 $cipher = MCRYPT_TRIPLEDES;
29 // tripledes is a block cipher of 64 bits (8 bytes)
40 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_ECB, $iv)));
47 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_ECB, $iv)));
H A Dmcrypt_ecb_3des_decrypt.phpt13 /* 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
19 $cipher = MCRYPT_TRIPLEDES;
35 // tripledes is a block cipher of 64 bits (8 bytes)
51 …special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), MCRYPT_MODE_ECB, $i…
58 …special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), MCRYPT_MODE_ECB, $ivs[$i…
H A Dmcrypt_cbc_3des_encrypt.phpt11 /* 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
17 $cipher = MCRYPT_TRIPLEDES;
26 // tripledes is a block cipher of 64 bits (8 bytes)
37 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv)));
44 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv)));
H A Dmcrypt_decrypt_3des_ecb.phpt11 /* 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 Dmcrypt_cbc_3des_decrypt.phpt11 /* 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
17 $cipher = MCRYPT_TRIPLEDES;
33 // tripledes is a block cipher of 64 bits (8 bytes)
50 …special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), MCRYPT_MODE_CBC, $i…
57 …special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), MCRYPT_MODE_CBC, $ivs[$i…
H A Dmcrypt_decrypt_3des_cbc.phpt11 /* 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 Dmcrypt_encrypt_3des_cbc.phpt11 /* 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 Dmcrypt_encrypt_3des_ecb.phpt11 /* 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 Dbug8040.phpt18 printf ("cipher=".CIPHER. " mode1=".MODE2. " mode2=". MODE3."\n");
24 cipher=twofish mode1=cbc mode2=MCRYPT_CBC
H A Dmcrypt_decrypt_variation3.phpt11 /* 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 Dmcrypt_encrypt_variation3.phpt11 /* 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
29 $cipher = MCRYPT_TRIPLEDES;
116 var_dump( bin2hex(mcrypt_encrypt($cipher, $key, $value, $mode, $iv) ));
/PHP-7.1/ext/openssl/tests/
H A Dbug70438.phpt13 $cipher = 'AES-128-CBC';
17 openssl_seal($data, $sealed, $ekeys, array($pub_key, $pub_key), $cipher);
19 openssl_seal($data, $sealed, $ekeys, array($pub_key, $pub_key), $cipher, $iv);
20 openssl_open($sealed, $decrypted, $ekeys[0], $priv_key, $cipher, $iv);
H A Dopenssl_decrypt_error.phpt35 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d
39 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d
42 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d
45 Warning: openssl_decrypt(): Unknown cipher algorithm in %s on line %d
57 Warning: openssl_encrypt(): The authenticated tag cannot be provided for cipher that doesn not supp…
H A Dopenssl_encrypt_error.phpt31 Warning: openssl_encrypt(): Unknown cipher algorithm in %s on line %d
52 Warning: openssl_encrypt(): The authenticated tag cannot be provided for cipher that doesn not supp…
55 Warning: openssl_encrypt(): Key length cannot be set for the cipher method in %s on line %d
/PHP-7.1/ext/mcrypt/
H A Dmcrypt.c55 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)
515 cipher, in PHP_FUNCTION()
1025 char *cipher; in PHP_FUNCTION() local
1054 char *cipher; in PHP_FUNCTION() local
1083 char *cipher; in PHP_FUNCTION() local
[all …]
/PHP-7.1/ext/openssl/
H A Dconfig0.m411 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,…
31 …AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value…

Completed in 49 milliseconds

123