/PHP-7.2/ext/standard/tests/strings/ |
H A D | sha1_basic.phpt | 2 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 D | sha1_error.phpt | 2 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 D | sha1raw.phpt | 2 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 D | sha1_variation1.phpt | 2 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 D | sha1_variation2.phpt | 2 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 D | sha1.phpt | 2 sha1() with ASCII output 6 $filename = dirname(__FILE__)."/sha1.dat"; 16 var_dump($val1 = sha1($str)); 22 var_dump(sha1($str, true));
|
/PHP-7.2/ext/hash/tests/ |
H A D | hash_pbkdf2_basic.phpt | 16 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n"; 17 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n"; 18 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n"; 19 echo "sha1(rounds): " . hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsa… 20 echo "sha1(rounds)(raw): " . bin2hex(hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltS… 31 sha1: 0c60c80f961f0e71f3a9 32 sha1(no length): 0c60c80f961f0e71f3a9b524af6012062fe037a6 33 sha1(raw): 0c60c80f961f0e71f3a9b524af6012062fe037a6 34 sha1(rounds): 3d2eec4fe41c849b80c8d8366 35 sha1(rounds)(raw): 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038
|
H A D | sha1.phpt | 2 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 D | bug64745.phpt | 7 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); 8 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
|
H A D | hash_hkdf_error.phpt | 19 var_dump(hash_hkdf('sha1')); 22 var_dump(hash_hkdf('sha1', $ikm, 20, '', '', 'extra parameter')); 38 var_dump(hash_hkdf('sha1', '')); 39 var_dump(hash_hkdf('sha1', $ikm, -1)); 40 var_dump(hash_hkdf('sha1', $ikm, 20 * 255 + 1)); // Length can't be more than 255 times the hash di…
|
H A D | hash_hmac_basic.phpt | 28 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 51 sha1: 5bfdb62b97e2c987405463e9f7c193139c0e1fd0
|
H A D | hash_file_basic1.phpt | 46 echo "sha1: " . hash_file('sha1', $file). "\n"; 75 sha1: 8529b266611e3bd0d208fd9614653c2a8f23d0fe
|
H A D | hash_hmac_file_basic.phpt | 48 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 79 sha1: 7f338d17b72371091abd28f451bc8d1f3a9eb3b6
|
H A D | hash_hkdf_basic.phpt | 20 echo 'sha1: ', bin2hex(hash_hkdf('sha1', $ikm)), "\n"; 61 sha1: a71863230e3782240265126a53e137af6667e988
|
H A D | hash_hmac_algos.phpt | 15 [%d] => sha1
|
H A D | hash_file_basic.phpt | 22 var_dump( hash_file( 'sha1', $filename ) );
|
H A D | hash_hkdf_rfc5869.phpt | 40 'sha1', 48 'sha1', 56 'sha1', 64 'sha1',
|
/PHP-7.2/ext/session/tests/ |
H A D | bug71162.phpt | 38 return sha1(random_bytes(32)); 55 session_id(sha1('')); 60 session_id(sha1('')); 65 session_id(sha1(''));
|
/PHP-7.2/ext/openssl/tests/ |
H A D | openssl_x509_fingerprint_basic.phpt | 22 echo "** Testing hash method sha1 with resource **\n"; 24 var_dump(openssl_x509_fingerprint($r, 'sha1')); 42 ** Testing hash method sha1 with resource **
|
H A D | openssl_digest_basic.phpt | 9 $method2 = "sha1";
|
H A D | openssl_csr_get_public_key_basic.phpt | 28 "digest_alg" => "sha1",
|
/PHP-7.2/ext/standard/ |
H A D | sha1.h | 38 PHP_FUNCTION(sha1);
|
/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | 009.phpt | 6 $res = sha1($str)."\n";
|
/PHP-7.2/ext/hash/ |
H A D | README | 19 manner as sha1()'s optional parameter.
|
H A D | php_hash_sha.h | 48 PHP_FUNCTION(sha1);
|