Home
last modified time | relevance | path

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

123

/PHP-5.5/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_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 Dmcrypt_ofb.phpt9 $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 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_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 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 mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC);
H A Dmcrypt_cbc.phpt9 $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 Dmcrypt_ecb_error.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
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 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
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 Dmcrypt_cbc_error.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
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 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
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 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_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
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 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 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_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_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
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 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
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 Dbug8040.phpt18 printf ("cipher=".CIPHER. " mode1=".MODE2. " mode2=". MODE3."\n");
24 cipher=twofish mode1=cbc mode2=MCRYPT_CBC
H A Dmcrypt_ecb_variation4.phpt13 /* 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 Dmcrypt_ecb_variation2.phpt13 /* 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, $value, $data, $mode, $iv)));
H A Dmcrypt_ecb_variation3.phpt13 /* 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, $value, $mode, $iv)));
/PHP-5.5/ext/mcrypt/
H A Dmcrypt.c54 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 …]
/PHP-5.5/ext/openssl/tests/
H A Dopenssl_decrypt_error.phpt33 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

Completed in 56 milliseconds

123