/PHP-7.2/ext/phar/tests/ |
H A D | phar_setsignaturealgo2.phpt | 2 Phar::setSupportedSignatures() with hash 6 if (!extension_loaded("hash")) die("skip hash extension required"); 9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared"); 55 ["hash"]=> 61 ["hash"]=> 67 ["hash"]=> 73 ["hash"]=> 79 ["hash"]=> 85 ["hash"]=>
|
H A D | phar_setsignaturealgo1.phpt | 5 <?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 D | phar_get_supported_signatures_002.phpt | 6 if (!extension_loaded("hash")) die("skip extension hash required"); 9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
|
H A D | phar_get_supported_signatures_002a.phpt | 6 if (!extension_loaded("hash")) die("skip extension hash required"); 9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
|
/PHP-7.2/ext/phar/tests/tar/ |
H A D | phar_setsignaturealgo2.phpt | 2 Phar::setSupportedSignatures() with hash, tar-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"); ?> 53 ["hash"]=> 59 ["hash"]=> 65 ["hash"]=> 71 ["hash"]=> 77 ["hash"]=> 83 ["hash"]=>
|
/PHP-7.2/ext/hash/tests/ |
H A D | sha512-224.phpt | 4 <?php if(!extension_loaded("hash")) print "skip"; ?> 7 echo hash('sha512/224', '') . "\n"; 8 echo hash('sha512/224', 'abc') . "\n"; 9 echo hash('sha512/224', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjk…
|
H A D | sha512-256.phpt | 4 <?php if(!extension_loaded("hash")) print "skip"; ?> 7 echo hash('sha512/256', '') . "\n"; 8 echo hash('sha512/256', 'abc') . "\n"; 9 echo hash('sha512/256', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjk…
|
H A D | whirlpool.phpt | 4 <?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 D | hash_hmac_file_error.phpt | 4 <?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"; 31 echo "\n-- Testing hash_hmac_file() function with non-cryptographic hash algorithm --\n"; 40 *** Testing hash() : error conditions *** 57 -- Testing hash_hmac_file() function with invalid hash algorithm -- 61 -- Testing hash_hmac_file() function with non-cryptographic hash algorithm --
|
H A D | mhash_001.phpt | 26 foreach ($supported_hash_al as $hash=>$wanted) { 27 $result = mhash(constant($hash), $data); 29 echo "$hash\nok\n"; 31 echo "$hash: "; 33 echo "$hash: ";
|
H A D | hash_hmac_error.phpt | 4 <?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"; 29 echo "\n-- Testing hash_hmac() function with non-cryptographic hash algorithm --\n"; 53 -- Testing hash_hmac() function with invalid hash algorithm -- 58 -- Testing hash_hmac() function with non-cryptographic hash algorithm --
|
H A D | hash_file_basic.phpt | 4 <?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 D | bug64745.phpt | 4 <?php extension_loaded('hash') or die('skip'); ?> 7 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); 10 var_dump($hash);
|
H A D | joaat.phpt | 4 <?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?> 21 $result = hash("joaat", $test[0]);
|
/PHP-7.2/ext/hash/ |
H A D | hash.c | 184 PHP_FUNCTION(hash) in PHP_FUNCTION() argument 371 hash->ops = ops; in php_hashcontext_ctor() 374 hash->key = NULL; in php_hashcontext_ctor() 466 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION() 502 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION() 539 hash->ops->hash_init(hash->context); in PHP_FUNCTION() 540 hash->ops->hash_update(hash->context, hash->key, hash->ops->block_size); in PHP_FUNCTION() 541 hash->ops->hash_update(hash->context, (unsigned char *) ZSTR_VAL(digest), hash->ops->digest_size); in PHP_FUNCTION() 545 ZEND_SECURE_ZERO(hash->key, hash->ops->block_size); in PHP_FUNCTION() 1127 hash->ops->hash_final(dummy, hash->context); in php_hashcontext_dtor() [all …]
|
H A D | config.m4 | 2 dnl config.m4 for extension hash 7 PHP_ARG_ENABLE(hash, whether to enable hash support, 8 [ --disable-hash Disable hash support], yes) 43 PHP_ADD_BUILD_DIR(ext/hash/$SHA3_DIR, 1) 46 EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ 54 PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared,,$PHP_HASH_CFLAGS) 56 PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS)
|
H A D | README | 5 $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-7.2/ext/standard/tests/password/ |
H A D | password_needs_rehash_argon2.phpt | 10 $hash = password_hash('test', PASSWORD_ARGON2I); 11 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2I)); 12 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2I, ['memory_cost' => PASSWORD_ARGON2_DEFAULT_M… 13 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2I, ['time_cost' => PASSWORD_ARGON2_DEFAULT_TIM…
|
H A D | password_hash.phpt | 9 $hash = password_hash("foo", PASSWORD_BCRYPT); 11 var_dump($hash === crypt("foo", $hash));
|
/PHP-7.2/ext/session/ |
H A D | mod_mm.c | 57 ps_sd **hash; member 107 mm_free(data->mm, data->hash); in hash_split() 109 data->hash = nhash; in hash_split() 138 sd->next = data->hash[slot]; in ps_sd_new() 139 data->hash[slot] = sd; in ps_sd_new() 160 if (data->hash[slot] == sd) { in ps_sd_destroy() 161 data->hash[slot] = sd->next; in ps_sd_destroy() 199 ret->next = data->hash[slot]; in ps_sd_lookup() 200 data->hash[slot] = ret; in ps_sd_lookup() 239 if (!data->hash) { in ps_mm_initialize() [all …]
|
/PHP-7.2/ext/sodium/tests/ |
H A D | pwhash_scrypt.phpt | 10 $hash = sodium_crypto_pwhash_scryptsalsa208sha256_str 13 var_dump(substr($hash, 0, 3) === 16 $c = sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($hash, $passwd); 19 $c = sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($hash, 'passwd');
|
H A D | pwhash_argon2i.phpt | 10 $hash = sodium_crypto_pwhash_str 13 var_dump(substr($hash, 0, strlen(SODIUM_CRYPTO_PWHASH_STRPREFIX)) === 24 $c = sodium_crypto_pwhash_str_verify($hash, $passwd); 27 $c = sodium_crypto_pwhash_str_verify($hash, 'passwd');
|
/PHP-7.2/ext/openssl/tests/ |
H A D | openssl_x509_fingerprint_basic.phpt | 16 echo "** Testing hash method md5 **\n"; 22 echo "** Testing hash method sha1 with resource **\n"; 28 echo "** Testing bad hash method **\n"; 38 ** Testing hash method md5 ** 42 ** Testing hash method sha1 with resource ** 48 ** Testing bad hash method **
|
/PHP-7.2/ext/phar/tests/zip/ |
H A D | phar_setsignaturealgo2.phpt | 2 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-7.2/ext/intl/collator/ |
H A D | collator_convert.c | 38 HashTable* hash, zval *hashData, zend_string *hashKey, zend_ulong hashIndex, in collator_convert_hash_item_from_utf8_to_utf16() argument 68 zend_hash_update( hash, hashKey, &znew_val); in collator_convert_hash_item_from_utf8_to_utf16() 72 zend_hash_index_update( hash, hashIndex, &znew_val); in collator_convert_hash_item_from_utf8_to_utf16() 79 HashTable* hash, zval * hashData, zend_string* hashKey, zend_ulong hashIndex, in collator_convert_hash_item_from_utf16_to_utf8() argument 105 zend_hash_update( hash, hashKey, &znew_val); in collator_convert_hash_item_from_utf16_to_utf8() 109 zend_hash_index_update( hash, hashIndex, &znew_val); in collator_convert_hash_item_from_utf16_to_utf8() 117 void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* status ) in collator_convert_hash_from_utf8_to_utf16() argument 123 ZEND_HASH_FOREACH_KEY_VAL(hash, hashIndex, hashKey, hashData) { in collator_convert_hash_from_utf8_to_utf16() 126 hash, hashData, hashKey, hashIndex, status ); in collator_convert_hash_from_utf8_to_utf16() 142 ZEND_HASH_FOREACH_KEY_VAL(hash, hashIndex, hashKey, hashData) { in collator_convert_hash_from_utf16_to_utf8() [all …]
|