php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash.stub.php File Reference

Go to the source code of this file.

Data Structures

class  HashContext
 

Functions

 hash (string $algo, string $data, bool $binary=false, array $options=[])
 
 hash_file (string $algo, string $filename, bool $binary=false, array $options=[])
 
 hash_hmac (string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary=false)
 
 hash_hmac_file (string $algo, string $filename, #[\SensitiveParameter] string $key, bool $binary=false)
 
 hash_init (string $algo, int $flags=0, #[\SensitiveParameter] string $key="", array $options=[])
 
 hash_update (HashContext $context, string $data)
 
 hash_update_stream (HashContext $context, $stream, int $length=-1)
 
 hash_update_file (HashContext $context, string $filename, $stream_context=null)
 
 hash_final (HashContext $context, bool $binary=false)
 
 hash_copy (HashContext $context)
 
 hash_algos ()
 
 hash_hmac_algos ()
 
 hash_pbkdf2 (string $algo, #[\SensitiveParameter] string $password, string $salt, int $iterations, int $length=0, bool $binary=false, array $options=[])
 
 hash_equals (#[\SensitiveParameter] string $known_string, #[\SensitiveParameter] string $user_string)
 
 hash_hkdf (string $algo, #[\SensitiveParameter] string $key, int $length=0, string $info="", string $salt="")
 
 mhash_get_block_size (int $algo)
 
 mhash_get_hash_name (int $algo)
 
 mhash_keygen_s2k (int $algo, string $password, string $salt, int $length)
 
 mhash_count ()
 
 mhash (int $algo, string $data, ?string $key=null)
 

Variables

const HASH_HMAC = UNKNOWN
 

Function Documentation

◆ hash()

hash ( string $algo,
string $data,
bool $binary = false,
array $options = [] )

@refcount 1

Definition at line 12 of file hash.stub.php.

◆ hash_algos()

hash_algos ( )
Returns
array<int, string> @compile-time-eval @refcount 1

Definition at line 51 of file hash.stub.php.

◆ hash_copy()

hash_copy ( HashContext $context)

@refcount 1

Definition at line 44 of file hash.stub.php.

◆ hash_equals()

hash_equals ( # string $known_string[\SensitiveParameter],
# string $user_string[\SensitiveParameter] )

Definition at line 65 of file hash.stub.php.

◆ hash_file()

hash_file ( string $algo,
string $filename,
bool $binary = false,
array $options = [] )

@refcount 1

Definition at line 15 of file hash.stub.php.

◆ hash_final()

hash_final ( HashContext $context,
bool $binary = false )

@refcount 1

Definition at line 41 of file hash.stub.php.

◆ hash_hkdf()

hash_hkdf ( string $algo,
# string $key[\SensitiveParameter],
int $length = 0,
string $info = "",
string $salt = "" )

@refcount 1

Definition at line 70 of file hash.stub.php.

◆ hash_hmac()

hash_hmac ( string $algo,
string $data,
# string $key[\SensitiveParameter],
bool $binary = false )

@refcount 1

Definition at line 20 of file hash.stub.php.

◆ hash_hmac_algos()

hash_hmac_algos ( )
Returns
array<int, string> @compile-time-eval @refcount 1

Definition at line 58 of file hash.stub.php.

◆ hash_hmac_file()

hash_hmac_file ( string $algo,
string $filename,
# string $key[\SensitiveParameter],
bool $binary = false )

@refcount 1

Definition at line 25 of file hash.stub.php.

◆ hash_init()

hash_init ( string $algo,
int $flags = 0,
# string $key[\SensitiveParameter] = "",
array $options = [] )

@refcount 1

Definition at line 30 of file hash.stub.php.

◆ hash_pbkdf2()

hash_pbkdf2 ( string $algo,
# string $password[\SensitiveParameter],
string $salt,
int $iterations,
int $length = 0,
bool $binary = false,
array $options = [] )

@refcount 1

Definition at line 63 of file hash.stub.php.

◆ hash_update()

hash_update ( HashContext $context,
string $data )

Definition at line 32 of file hash.stub.php.

◆ hash_update_file()

hash_update_file ( HashContext $context,
string $filename,
$stream_context = null )
Parameters
resource | null$stream_context

Definition at line 38 of file hash.stub.php.

◆ hash_update_stream()

hash_update_stream ( HashContext $context,
$stream,
int $length = -1 )
Parameters
resource$stream

Definition at line 35 of file hash.stub.php.

◆ mhash()

mhash ( int $algo,
string $data,
?string $key = null )

@refcount 1

Definition at line 95 of file hash.stub.php.

◆ mhash_count()

mhash_count ( )

Definition at line 89 of file hash.stub.php.

◆ mhash_get_block_size()

mhash_get_block_size ( int $algo)

Definition at line 74 of file hash.stub.php.

◆ mhash_get_hash_name()

mhash_get_hash_name ( int $algo)

@refcount 1

Definition at line 80 of file hash.stub.php.

◆ mhash_keygen_s2k()

mhash_keygen_s2k ( int $algo,
string $password,
string $salt,
int $length )

@refcount 1

Definition at line 86 of file hash.stub.php.

Variable Documentation

◆ HASH_HMAC

const HASH_HMAC = UNKNOWN

Definition at line 9 of file hash.stub.php.