mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Update hash tests for consistency in their titles and remove the skipif sections (except for the mhash related tests)
This commit is contained in:
parent
bf34442581
commit
f73c0102d6
63 changed files with 67 additions and 198 deletions
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
ADLER32
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: ADLER32 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('adler32', ''), "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Bug #52240 (hash_copy() does not copy the HMAC key, causes wrong results and PHP crashes)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Bug #64745 hash_pbkdf2() truncates data when using default length and hex output
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output)
|
||||
--FILE--
|
||||
<?php
|
||||
$hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Bug #70312 HAVAL gives wrong hashes in specific cases
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Bug #70312 (HAVAL gives wrong hashes in specific cases)
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(hash('haval128,5', '1234567890123456789012345678901234567890123456789012345678901234'));
|
||||
|
@ -15,4 +13,4 @@ string(32) "f3f0d23819b87228b4b70ee350afaa9d"
|
|||
string(40) "aded6485e137f11d7292212ba3fa961714df0564"
|
||||
string(48) "e53da2b16269fe732e9a898a96707a9f28404d7333b02286"
|
||||
string(56) "c574fb307f0817b514b9bb2e7c4bfaffb7ad667aca3c8b523fefcf10"
|
||||
string(64) "fb73c19300b14d5cb393d929bf005e6c2d459a4c9c009e9813af1d2d3637ee8f"
|
||||
string(64) "fb73c19300b14d5cb393d929bf005e6c2d459a4c9c009e9813af1d2d3637ee8f"
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Bug #73127 (gost-crypto hash incorrect if input data contains long 0xFF sequence)
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
CRC32
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: CRC32 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('crc32', ''), "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
FNV
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
|
||||
Hash: FNV132 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
FNV
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
|
||||
Hash: FNV164 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
FNV
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
|
||||
Hash: FNV1a32 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
FNV
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
|
||||
Hash: FNV1a64 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
gost
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: gost algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('gost', ''), "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
hash_copy() via clone
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: hash_copy() via clone
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_algos() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_algos() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
hash_copy() basic tests
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: hash_copy() basic tests
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
hash_copy() errors
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: hash_copy() errors
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
hash_equals() function
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
|
||||
Hash: hash_equals() test
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(hash_equals("same", "same"));
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash() function : error conditions
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash() function : error conditions
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -45,4 +43,4 @@ NULL
|
|||
|
||||
Warning: hash(): Unknown hashing algorithm: foo in %s on line %d
|
||||
bool(false)
|
||||
===Done===
|
||||
===Done===
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_file() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_file() function : basic functionality
|
||||
--CREDITS--
|
||||
Felix De Vliegher <felix.devliegher@gmail.com>
|
||||
--FILE--
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_file() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_file() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_file() function : error conditions
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_file() function : error conditions
|
||||
--CREDITS--
|
||||
Felix De Vliegher <felix.devliegher@gmail.com>
|
||||
--FILE--
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hkdf() function: basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hkdf() function: basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hkdf() function: edge cases
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hkdf() function: edge cases
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hkdf() function: error conditions
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hkdf() function: error conditions
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hkdf() function: RFC 5869 test vectors
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hkdf() function: RFC 5869 test vectors
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hmac_algos() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hmac_algos() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_file() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_file() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hmac() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hmac() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hmac_file() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hmac_file() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_hmac_file() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_hmac_file() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
--TEST--
|
||||
hash_init() function - errors test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('hash')) die('skip hash extension not available');
|
||||
?>
|
||||
Hash: hash_init() function - errors test
|
||||
--FILE--
|
||||
<?php
|
||||
echo "*** Testing hash_init(): error conditions ***\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_pbkdf2() function : basic functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: hash_pbkdf2() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Test hash_pbkdf2() function : error functionality
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
|
||||
Hash: Test hash_pbkdf2() function : error functionality
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
--TEST--
|
||||
hash_update_file() function - basic test
|
||||
Hash: hash_update_file() test
|
||||
--CREDITS--
|
||||
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('hash')) die('skip hash extension not available');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$filePath = __DIR__ . DIRECTORY_SEPARATOR . 'hash_update_stream.txt';
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
--TEST--
|
||||
int hash_update_stream ( resource $context , resource $handle [, int $length = -1 ] );
|
||||
Hash: hash_update_stream() test
|
||||
--CREDITS--
|
||||
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('hash')) die('skip hash extension not available');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$fp = tmpfile();
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
haval algorithm (multi-vector, multi-pass, multi-width)
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: haval algorithm (multi-vector, multi-pass, multi-width)
|
||||
--FILE--
|
||||
<?php
|
||||
echo "Empty String\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
hmac-md5 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: hmac-md5 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
/* Test Vectors from RFC 2104 */
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Jenkins's one-at-a-time
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
|
||||
Hash: Jenkins's one-at-a-time
|
||||
--FILE--
|
||||
<?php
|
||||
$tests = array(
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
md2 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: md2 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('md2', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
md4 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: md4 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
/* RFC 1320 vectors */
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
md5 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: md5 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('md5', '') . "\n";
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
--TEST--
|
||||
mhash() test
|
||||
MHash: mhash() test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
include "skip_mhash.inc";
|
||||
?>
|
||||
<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
--TEST--
|
||||
mhash_get_block_size() & mhash_get_hash_name() test
|
||||
MHash: mhash_get_block_size() & mhash_get_hash_name() test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
include "skip_mhash.inc";
|
||||
?>
|
||||
<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$supported_hash_al = array(
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
--TEST--
|
||||
mhash_keygen_s2k() test
|
||||
MHash: mhash_keygen_s2k() test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
include "skip_mhash.inc";
|
||||
?>
|
||||
<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
--TEST--
|
||||
mhash() modifying algorithm parameter
|
||||
MHash: mhash() modifying algorithm parameter
|
||||
--SKIPIF--
|
||||
<?php
|
||||
include "skip_mhash.inc";
|
||||
?>
|
||||
<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Attempt to instantiate a HashContext directly
|
||||
Hash: Attempt to instantiate a HashContext directly
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('hash')) echo 'skip';
|
||||
--FILE--
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Attempt to reuse a closed hash context
|
||||
Hash: Attempt to reuse a closed hash context
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('hash')) echo 'skip';
|
||||
--FILE--
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
ripemd128 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: ripemd128 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('ripemd128', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
ripemd160 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: ripemd160 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('ripemd160', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
ripemd256 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: ripemd256 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('ripemd256', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
ripemd320 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: ripemd320 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('ripemd320', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
Serialize a context
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('hash')) echo 'skip';
|
||||
Hash: Context serialization
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -12,4 +10,4 @@ try {
|
|||
echo "Exception: {$e->getMessage()}\n";
|
||||
}
|
||||
--EXPECT--
|
||||
Exception: Serialization of 'HashContext' is not allowed
|
||||
Exception: Serialization of 'HashContext' is not allowed
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha1 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha1 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha1', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha224 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha224 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha224', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha256 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha256 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha256', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha3 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha3 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha384 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha384 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha384', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha512/224 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha512/224 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha512/224', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha512/256 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha512/256 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha512/256', '') . "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
sha512 algorithm
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded("hash")) print "skip"; ?>
|
||||
Hash: sha512 algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('sha512', '') . "\n";
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
if (!function_exists("mhash")) {
|
||||
die("skip mhash extension is not available");
|
||||
}
|
||||
?>
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
snefru
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: snefru algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('snefru', ''), "\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
tiger
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: tiger algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('tiger192,3', ''),"\n";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
whirlpool
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('hash') or die('skip'); ?>
|
||||
Hash: whirlpool algorithm
|
||||
--FILE--
|
||||
<?php
|
||||
echo hash('whirlpool', ''), "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue