Home
last modified time | relevance | path

Searched refs:sha1 (Results 1 – 25 of 35) sorted by relevance

12

/PHP-5.4/ext/standard/tests/strings/
H A Dsha1_basic.phpt2 sha1() with ASCII output.
13 var_dump(sha1(""));
14 var_dump(sha1("a"));
15 var_dump(sha1("abc"));
16 var_dump(sha1("message digest"));
22 var_dump(sha1("", false));
23 var_dump(sha1("a", false));
24 var_dump(sha1("abc", false));
31 var_dump(bin2hex(sha1("", true)));
32 var_dump(bin2hex(sha1("a", true)));
[all …]
H A Dsha1_error.phpt2 Test sha1() function : error conditions
7 /* Prototype: string sha1 ( string $str [, bool $raw_output ] )
8 * Description: Calculate the sha1 hash of a string
11 echo "*** Testing sha1() : error conditions ***\n";
13 echo "\n-- Testing sha1() function with no arguments --\n";
14 var_dump( sha1() );
18 var_dump( sha1("Hello World", true, $extra_arg) );
24 *** Testing sha1() : error conditions ***
26 -- Testing sha1() function with no arguments --
28 Warning: sha1() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dsha1raw.phpt2 sha1() with RAW output
5 echo bin2hex(sha1("abc", TRUE))."\n";
6 echo bin2hex(sha1("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", TRUE))."\n";
7 echo bin2hex(sha1("a", TRUE))."\n";
8 echo bin2hex(sha1("0123456701234567012345670123456701234567012345670123456701234567", TRUE))."\n";
H A Dsha1_variation2.phpt2 Test sha1() function : usage variations - unexpected values for 'raw' argument
6 /* Prototype: string sha1 ( string $str [, bool $raw_output ] )
7 * Description: Calculate the sha1 hash of a string
10 echo "*** Testing sha1() : unexpected values for 'raw' ***\n";
84 var_dump( bin2hex(sha1($string, $values[$count])) );
93 *** Testing sha1() : unexpected values for 'raw' ***
114 Warning: sha1() expects parameter 2 to be boolean, array given in %s on line %d
118 Warning: sha1() expects parameter 2 to be boolean, array given in %s on line %d
122 Warning: sha1() expects parameter 2 to be boolean, array given in %s on line %d
126 Warning: sha1() expects parameter 2 to be boolean, array given in %s on line %d
[all …]
H A Dsha1_variation1.phpt2 Test sha1() function : usage variations - unexpected values for 'str' argument
6 /* Prototype: string sha1 ( string $str [, bool $raw_output ] )
7 * Description: Calculate the sha1 hash of a string
10 echo "*** Testing sha1() : unexpected values for 'str' ***\n";
83 var_dump( sha1($values[$count], $raw) );
92 *** Testing sha1() : unexpected values for 'str' ***
113 Warning: sha1() expects parameter 1 to be string, array given in %s on line %d
117 Warning: sha1() expects parameter 1 to be string, array given in %s on line %d
121 Warning: sha1() expects parameter 1 to be string, array given in %s on line %d
125 Warning: sha1() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dsha1.phpt2 sha1() with ASCII output
6 $filename = dirname(__FILE__)."/sha1.dat";
16 var_dump($val1 = sha1($str));
22 var_dump(sha1($str, true));
/PHP-5.4/ext/hash/tests/
H A Dsha1.phpt2 sha1 algorithm
7 echo hash('sha1', '') . "\n";
8 echo hash('sha1', 'a') . "\n";
9 echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789') . "\n";
12 echo hash('sha1', 'abc') . "\n";
13 echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
14 echo hash('sha1', str_repeat('a', 1000000)) . "\n";
H A Dhash_file_basic1.phpt46 echo "sha1: " . hash_file('sha1', $file). "\n";
75 sha1: 8529b266611e3bd0d208fd9614653c2a8f23d0fe
H A Dhash_hmac_basic.phpt30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
56 sha1: 5bfdb62b97e2c987405463e9f7c193139c0e1fd0
H A Dhash_hmac_file_basic.phpt50 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n";
84 sha1: 7f338d17b72371091abd28f451bc8d1f3a9eb3b6
H A Dhash_file_basic.phpt22 var_dump( hash_file( 'sha1', $filename ) );
H A Dhash_algos.phpt29 string(4) "sha1"
H A Dhash_copy_001.phpt43 string(4) "sha1"
172 string(4) "sha1"
/PHP-5.4/ext/standard/
H A Dsha1.h38 PHP_FUNCTION(sha1);
H A Dconfig.w3221 php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \
/PHP-5.4/ext/openssl/tests/
H A Dopenssl_digest_basic.phpt9 $method2 = "sha1";
H A Dbug55646.phpt11 $config = array("digest_alg" => "sha1","x509_extensions" => "v3_ca","req_extensions" => "v3_req","p…
H A D022.phpt20 "digest_alg" => "sha1",
H A D021.phpt23 "digest_alg" => "sha1",
/PHP-5.4/ext/standard/tests/general_functions/
H A D009.phpt6 $res = sha1($str)."\n";
/PHP-5.4/ext/hash/
H A DREADME19 manner as sha1()'s optional parameter.
H A Dphp_hash_sha.h48 PHP_FUNCTION(sha1);
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_auth.c332 zend_uchar sha1[SHA1_MAX_LENGTH]; in php_mysqlnd_scramble() local
338 PHP_SHA1Final(sha1, &context); in php_mysqlnd_scramble()
342 PHP_SHA1Update(&context, (zend_uchar*)sha1, SHA1_MAX_LENGTH); in php_mysqlnd_scramble()
352 php_mysqlnd_crypt(buffer, (const zend_uchar *)buffer, (const zend_uchar *)sha1, SHA1_MAX_LENGTH); in php_mysqlnd_scramble()
/PHP-5.4/ext/phar/tests/
H A Dtest_signaturealgos.phpt16 $a = new Phar(dirname(__FILE__) . '/files/sha1.phar');
/PHP-5.4/ext/phar/
H A DMakefile.frag35 ….phar -a pharcommand -c auto -x \\.svn -p 0 -s $(srcdir)/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_B…

Completed in 115 milliseconds

12