Home
last modified time | relevance | path

Searched refs:key (Results 51 – 75 of 1144) sorted by relevance

12345678910>>...46

/PHP-5.5/ext/openssl/tests/
H A D014.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
29 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
32 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
35 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
H A D015.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
29 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
32 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
35 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
H A Dbug25614.phpt2 openssl: get public key from generated private key
6 if (!@openssl_pkey_new()) die("skip cannot create private key");
14 Warning: openssl_pkey_get_public(): Don't know how to get public key from this private key %s
H A D017.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
28 Warning: openssl_private_decrypt(): key parameter is not a valid private key in %s on line %d
34 Warning: openssl_private_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %…
36 Warning: openssl_private_decrypt(): key parameter is not a valid private key in %s on line %d
H A Dbug61930.phpt2 Bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey()
17 $key = openssl_get_publickey($cert);
18 var_dump(openssl_get_publickey($key));
19 var_dump(openssl_verify($data, base64_decode($sig), $key));
22 resource(%d) of type (OpenSSL key)
/PHP-5.5/ext/mcrypt/tests/
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
49 echo "\n--- testing different key lengths\n";
55 $key = b'1234567890123456';
59 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
70 --- testing different key lengths
72 key length=8
75 key length=20
78 key length=24
81 key length=26
[all …]
H A Dmcrypt_rijndael128_128BitKey.phpt12 * 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
22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
52 foreach ($keys as $key) {
53 echo "\nkey length=".strlen($key)."\n";
60 $key = b'1234567890123456';
75 --- testing different key lengths
77 key length=0
83 key length=0
89 key length=8
[all …]
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
52 echo "\n--- testing different key lengths\n";
58 $key = b'1234567890123456';
62 special_var_dump(mcrypt_ecb($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
73 --- testing different key lengths
75 key length=8
78 key length=20
81 key length=24
84 key length=26
[all …]
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
50 echo "\n--- testing different key lengths\n";
56 $key = b'1234567890123456';
60 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
71 --- testing different key lengths
73 key length=8
76 key length=20
79 key length=24
82 key length=26
[all …]
/PHP-5.5/ext/com_dotnet/
H A Dcom_iterator.c35 ulong key; member
82 ZVAL_NULL(key); in com_iter_get_key()
84 ZVAL_LONG(key, I->key); in com_iter_get_key()
105 I->key++; in com_iter_move_forwards()
108 I->key = (ulong)-1; in com_iter_move_forwards()
114 I->key = (ulong)-1; in com_iter_move_forwards()
117 I->key++; in com_iter_move_forwards()
119 I->key = (ulong)-1; in com_iter_move_forwards()
195 I->key = bound; in php_com_iter_get()
200 I->key = (ulong)-1; in php_com_iter_get()
[all …]
/PHP-5.5/ext/dba/tests/
H A Ddba_cdb_read.phpt14 // read key sequence
23 // display number of entries and key existence
43 $key = substr($keys, $i, 1);
44 $skip[$key] = 0;
45 echo dba_fetch($key, $db_file);
49 $key = substr($keys, $i, 1);
50 echo dba_fetch($key, $skip[$key], $db_file);
51 $skip[$key]++;
H A Dbug65708.phpt2 Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write)
16 $key = 1;
17 $copy = $key;
19 echo gettype($key)."\n";
22 dba_exists($key, $db);
24 echo gettype($key)."\n";
/PHP-5.5/tests/lang/
H A Dbug24783.phpt2 Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
7 foreach ($arr as $key => $val) {
8 echo strlen($key), ': ';
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-5.5/ext/standard/tests/array/
H A Dkey_variation3.phpt2 Test key() function : usage variations
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
14 echo "*** Testing key() : usage variations ***\n";
19 var_dump(key($array1));
29 var_dump(key($array1));
31 var_dump(key($array2));
35 *** Testing key() : usage variations ***
H A Deach_variation3.phpt118 ["key"]=>
130 ["key"]=>
142 ["key"]=>
154 ["key"]=>
166 ["key"]=>
178 ["key"]=>
190 ["key"]=>
202 ["key"]=>
214 ["key"]=>
226 ["key"]=>
[all …]
H A Darray_walk_recursive_basic1.phpt15 /* Prototype : test_print(mixed $item, mixed $key)
16 * Parameters : item - item in key/item pair
17 * key - key in key/item pair
20 function test_print($item, $key)
25 var_dump($key); // key
28 function with_userdata($item, $key, $user_data)
33 var_dump($key); // key
H A Darray_walk_basic1.phpt15 /* Prototype : test_print(mixed $item, mixed $key)
16 * Parameters : item - item in key/item pair
17 * key - key in key/item pair
20 function test_print($item, $key)
25 var_dump($key); // key
28 function with_userdata($item, $key, $user_data)
33 var_dump($key); // key
/PHP-5.5/tests/classes/
H A Dconstants_basic_004.phpt14 const KEY = "key";
48 ["key"]=>
52 ["key"]=>
56 ["key"]=>
60 ["key"]=>
64 ["key"]=>
72 ["key"]=>
79 ["key"]=>
86 ["key"]=>
91 ["key"]=>
[all …]
/PHP-5.5/Zend/tests/generators/
H A Dgenerator_with_keys.phpt8 while (null !== $key = key($array)) {
9 yield $key => current($array);
19 foreach (reverse($array) as $key => $value) {
20 echo $key, ' => ', $value, "\n";
/PHP-5.5/ext/zip/lib/
H A Dzip_source_pkware.c44 zip_uint32_t key[3]; member
93 ctx->key[0] = KEY0; in zip_source_pkware()
94 ctx->key[1] = KEY1; in zip_source_pkware()
95 ctx->key[2] = KEY2; in zip_source_pkware()
121 tmp = ctx->key[2] | 2; in decrypt()
131 ctx->key[0] = CRC32(ctx->key[0], b); in decrypt()
132 ctx->key[1] = (ctx->key[1] + (ctx->key[0] & 0xff)) * 134775813 + 1; in decrypt()
133 b = ctx->key[1] >> 24; in decrypt()
134 ctx->key[2] = CRC32(ctx->key[2], b); in decrypt()
/PHP-5.5/ext/spl/examples/
H A Dcallbackfilteriterator.inc24 const USE_KEY = 3; /**< mode: pass key to callback */
25 const USE_BOTH = 4; /**< mode: pass value and key to callback */
27 const REPLACE = 0x00000001; /**< flag: pass key/value by reference */
32 private $key; /**< key value */
55 $this->key = parent::key();
72 return (bool) call_user_func($this->callback, &$this->key);
74 return (bool) call_user_func($this->callback, $this->key);
80 return (bool) call_user_func($this->callback, $this->key, $this->current);
85 /** @return current key value */
86 function key()
[all …]
/PHP-5.5/ext/session/
H A Dmod_user_class.c74 char *key, *val; in PHP_METHOD() local
79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD()
83 if (PS(default_mod)->s_read(&PS(mod_data), key, &val, &val_len TSRMLS_CC) == FAILURE) { in PHP_METHOD()
98 char *key, *val; in PHP_METHOD() local
103 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAIL… in PHP_METHOD()
107 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC)); in PHP_METHOD()
115 char *key; in PHP_METHOD() local
120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD()
124 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_destroy(&PS(mod_data), key TSRMLS_CC)); in PHP_METHOD()
/PHP-5.5/ext/openssl/
H A DREADME28 2. An X509 resource - public key only
34 array($key, "passphrase") where $key can be a key specified using one of the
58 Parses the key data and returns a key resource identifier. If the key is
64 Extracts the public key from the given certificate or public key and returns
65 a key resource identifier.
226 Creating private key
240 openssl req -new -key /tmp/test.key -out /tmp/test.crt -days 365 -x509
284 openssl_free_key($key);
301 // $key is an encr key resource id if success, else false
306 openssl_free_key($key);
[all …]
/PHP-5.5/ext/spl/tests/
H A Darray_013.phpt16 foreach($it as $key => $val)
18 echo "$key=>$val\n";
26 foreach(new NoRewindIterator($it) as $key => $val)
28 echo "$key=>$val\n";
45 foreach($it as $key => $val)
47 echo "$key=>$val\n";
55 foreach(new NoRewindIterator($it) as $key => $val)
57 echo "$key=>$val\n";
H A Dfixedarray_019.phpt22 public function key() {
23 echo "key\n";
24 return parent::key();
38 key
43 key
48 key

Completed in 48 milliseconds

12345678910>>...46