Home
last modified time | relevance | path

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

12345678910>>...44

/PHP-5.4/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 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 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
/PHP-5.4/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.4/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.4/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.4/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_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_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_recursive_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
50 * $key - keys in given input array
53 function for_mixed($value, $key)
57 var_dump($key);
[all …]
H A Darray_walk_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
48 /* Prototype : for_mixed( mixed $value, mixed $key)
50 * $key - keys in given input array
53 function for_mixed($value, $key)
[all …]
H A Deach_variation2.phpt110 foreach($inputs as $key => $input) {
132 ["key"]=>
144 ["key"]=>
156 ["key"]=>
168 ["key"]=>
180 ["key"]=>
195 ["key"]=>
209 ["key"]=>
221 ["key"]=>
233 ["key"]=>
[all …]
/PHP-5.4/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.4/ext/mcrypt/tests/
H A Dmcrypt_ecb_3des_decrypt.phpt11 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
12 * Description: ECB 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_ecb($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 …]
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 …]
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
51 echo "\n--- testing different key lengths\n";
57 $key = b'1234567890123456';
61 special_var_dump(mcrypt_cbc($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
72 --- testing different key lengths
74 key length=8
77 key length=20
80 key length=24
83 key length=26
[all …]
/PHP-5.4/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.4/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.4/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.4/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
/PHP-5.4/ext/standard/tests/file/
H A Dfile_variation.phpt37 $key = "SEARCH_KEY";
38 fwrite( $file_handle, (binary)"The key string to be searched is SEARCH_KEY\nLine without key string…
41 echo "File contents in array form Before replacement of the key\n";
46 if( !strstr( $line, $key ) )
49 echo "File contents in array form After replacement of the key\n";
141 File contents in array form Before replacement of the key
144 string(44) "The key string to be searched is SEARCH_KEY
147 string(24) "Line without key string
150 string(43) "The key string to be searched is SEARCH_KEY"
152 File contents in array form After replacement of the key
[all …]

Completed in 34 milliseconds

12345678910>>...44