Home
last modified time | relevance | path

Searched refs:hash (Results 26 – 50 of 146) sorted by relevance

123456

/PHP-5.3/ext/hash/tests/
H A Dwhirlpool.phpt4 <?php extension_loaded('hash') or die('skip'); ?>
7 echo hash('whirlpool', ''), "\n";
8 echo hash('whirlpool', $s='---qwertzuiopasdfghjklyxcvbnm------qwertzuiopasdfghjklyxcvbnm---'), "\n";
9 echo hash('whirlpool', str_repeat($s.'0', 1000)), "\n";
H A Dhash_hmac_file_error.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
9 * Description: Generate a keyed hash value using the HMAC method and the contents of a given file
10 * Source code: ext/hash/hash.c
14 echo "*** Testing hash() : error conditions ***\n";
28 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n";
34 *** Testing hash() : error conditions ***
51 -- Testing hash_hmac_file() function with invalid hash algorithm --
H A Dmhash_001.phpt28 foreach ($supported_hash_al as $hash=>$wanted) {
29 $result = mhash(constant($hash), $data);
31 echo "$hash\nok\n";
33 echo "$hash: ";
35 echo "$hash: ";
H A Dhash_file_basic.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
10 * Description: Generate a hash of a given file
11 * Source code: ext/hash/hash.c
H A Dhash_hmac_error.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
9 * Function is implemented in ext/hash/hash.c
26 echo "\n-- Testing hash_hmac() function with invalid hash algorithm --\n";
50 -- Testing hash_hmac() function with invalid hash algorithm --
H A Dhash_algos.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
10 * Source code: ext/hash/hash.c
H A Dhash_file_error.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
10 * Description: Generate a hash of a given file
11 * Source code: ext/hash/hash.c
H A Dhaval.phpt4 <?php if(!extension_loaded("hash")) print "skip"; ?>
11 echo $algo . ': ' . hash($algo,'') . "\n";
18 echo $algo . ': ' . hash($algo,'abc') . "\n";
25 …echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcde…
H A Dhash_file_basic1.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
9 * Description: Generate a hash value using the contents of a given file
10 * Source code: ext/hash/hash.c
H A Dhash_hmac_basic.phpt4 <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
9 * Description: Generate a keyed hash value using the HMAC method
10 * Source code: ext/hash/hash.c
/PHP-5.3/ext/phar/tests/
H A Dphar_setsignaturealgo1.phpt5 <?php if ( extension_loaded("hash")) die("skip extension hash conflicts"); ?>
45 ["hash"]=>
51 ["hash"]=>
57 ["hash"]=>
62 string (82) "SHA-256 and SHA-512 signatures are only supported if the hash extension is enabled"
63 string (82) "SHA-256 and SHA-512 signatures are only supported if the hash extension is enabled"
65 ["hash"]=>
H A Dphar_get_supported_signatures_002.phpt6 if (!extension_loaded("hash")) die("skip extension hash required");
9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
H A Dphar_get_supported_signatures_002a.phpt6 if (!extension_loaded("hash")) die("skip extension hash required");
9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
H A Dcreate_new_and_modify.phpt30 var_dump($sig1[b'hash']);
31 var_dump($sig2[b'hash']);
32 var_dump($sig1[b'hash'] != $sig2[b'hash']);
H A Dphar_get_supported_signatures_001.phpt6 if (extension_loaded("hash")) die("skip extension hash conflicts");
H A Dphar_get_supported_signatures_001a.phpt6 if (extension_loaded("hash")) die("skip extension hash conflicts");
/PHP-5.3/ext/session/
H A Dmod_mm.c59 ps_sd **hash; member
109 mm_free(data->mm, data->hash); in hash_split()
111 data->hash = nhash; in hash_split()
141 sd->next = data->hash[slot]; in ps_sd_new()
142 data->hash[slot] = sd; in ps_sd_new()
163 if (data->hash[slot] == sd) { in ps_sd_destroy()
164 data->hash[slot] = sd->next; in ps_sd_destroy()
202 ret->next = data->hash[slot]; in ps_sd_lookup()
203 data->hash[slot] = ret; in ps_sd_lookup()
228 if (!data->hash) { in ps_mm_initialize()
[all …]
/PHP-5.3/ext/hash/
H A Dconfig.w324 ARG_ENABLE("hash", "enable hash support", "yes");
16 EXTENSION("hash", "hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c "
20 PHP_INSTALL_HEADERS("ext/hash/", "php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h " +
H A DREADME5 $digest = hash($algoname, $message);
10 $digest = hash('md5', 'The quick brown fox jumped over the lazy dog.');
18 hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which …
/PHP-5.3/ext/phar/tests/zip/
H A Dphar_setsignaturealgo2.phpt2 Phar::setSupportedSignatures() with hash, zip-based
5 <?php if (!extension_loaded("hash")) die("skip extension hash required");
8 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared"); ?>
80 ["hash"]=>
86 ["hash"]=>
92 ["hash"]=>
98 ["hash"]=>
104 ["hash"]=>
110 ["hash"]=>
/PHP-5.3/ext/mcrypt/tests/
H A Dbug43143.phpt5 if (!extension_loaded("hash")) print "skip"; ?>
10 $mkey = hash('sha256', 'secret key', TRUE);
14 $mkey = hash('sha256', 'secret key', TRUE);
/PHP-5.3/ext/dba/libcdb/
H A Dcdb_make.c63 c->hash = 0; in cdb_make_start()
178 c->hash = c->split + c->numentries; in cdb_make_finish()
200 c->hash[u].h = c->hash[u].p = 0; in cdb_make_finish()
205 while (c->hash[where].p) in cdb_make_finish()
208 c->hash[where] = *hp++; in cdb_make_finish()
212 uint32_pack(buf, c->hash[u].h); in cdb_make_finish()
213 uint32_pack(buf + 4, c->hash[u].p); in cdb_make_finish()
/PHP-5.3/ext/intl/collator/
H A Dcollator_sort.c292 HashTable* hash = NULL; in collator_sort_internal() local
314 hash = HASH_OF( array ); in collator_sort_internal()
317 collator_convert_hash_from_utf8_to_utf16( hash, COLLATOR_ERROR_CODE_P( co ) ); in collator_sort_internal()
325 zend_hash_sort( hash, zend_qsort, collator_compare_func, renumber TSRMLS_CC ); in collator_sort_internal()
331 collator_convert_hash_from_utf16_to_utf8( hash, COLLATOR_ERROR_CODE_P( co ) ); in collator_sort_internal()
359 HashTable* hash = NULL; in PHP_FUNCTION() local
409 hash = HASH_OF( array ); in PHP_FUNCTION()
411 if( !hash || zend_hash_num_elements( hash ) == 0 ) in PHP_FUNCTION()
420 zend_hash_internal_pointer_reset( hash ); in PHP_FUNCTION()
421 while( zend_hash_get_current_data( hash, (void**) &hashData ) == SUCCESS ) in PHP_FUNCTION()
[all …]
H A Dcollator_convert.h24 void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* status );
25 void collator_convert_hash_from_utf16_to_utf8( HashTable* hash, UErrorCode* status );
/PHP-5.3/ext/phar/tests/cache_list/
H A Dcopyonwrite12.phar.phpt14 ["hash"]=>
20 ["hash"]=>

Completed in 49 milliseconds

123456