php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash.stub.php
Go to the documentation of this file.
1<?php
2
4
9const HASH_HMAC = UNKNOWN;
10
12function hash(string $algo, string $data, bool $binary = false, array $options = []): string {}
13
15function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
16
20function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = false): string {}
21
25function hash_hmac_file(string $algo, string $filename, #[\SensitiveParameter] string $key, bool $binary = false): string|false {}
26
30function hash_init(string $algo, int $flags = 0, #[\SensitiveParameter] string $key = "", array $options = []): HashContext {}
31
32function hash_update(HashContext $context, string $data): true {}
33
35function hash_update_stream(HashContext $context, $stream, int $length = -1): int {}
36
38function hash_update_file(HashContext $context, string $filename, $stream_context = null): bool {}
39
41function hash_final(HashContext $context, bool $binary = false): string {}
42
45
52
59
63function hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iterations, int $length = 0, bool $binary = false, array $options = []): string {}
64
65function hash_equals(#[\SensitiveParameter] string $known_string, #[\SensitiveParameter] string $user_string): bool {}
66
70function hash_hkdf(string $algo, #[\SensitiveParameter] string $key, int $length = 0, string $info = "", string $salt = ""): string {}
71
72#ifdef PHP_MHASH_BC
73#[\Deprecated(since: '8.1')]
74function mhash_get_block_size(int $algo): int|false {}
75
79#[\Deprecated(since: '8.1')]
80function mhash_get_hash_name(int $algo): string|false {}
81
85#[\Deprecated(since: '8.1')]
86function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {}
87
88#[\Deprecated(since: '8.1')]
90
94#[\Deprecated(since: '8.1')]
95function mhash(int $algo, string $data, ?string $key = null): string|false {}
96#endif
97
98final class HashContext
99{
100 private function __construct() {}
101
102 public function __serialize(): array {}
103
105
106 public function __debugInfo(): array {}
107}
__unserialize(array $data)
$filename
Definition create.php:9
$data
Definition bench.php:6
if(PHP_SAPI !='cli') if($argc< 1) $options
Definition ext_skel.php:376
mhash_count()
Definition hash.stub.php:89
mhash_get_hash_name(int $algo)
Definition hash.stub.php:80
hash_algos()
Definition hash.stub.php:51
mhash_get_block_size(int $algo)
Definition hash.stub.php:74
hash_update(HashContext $context, string $data)
Definition hash.stub.php:32
hash_update_stream(HashContext $context, $stream, int $length=-1)
Definition hash.stub.php:35
hash_file(string $algo, string $filename, bool $binary=false, array $options=[])
Definition hash.stub.php:15
hash_equals(#[\SensitiveParameter] string $known_string, #[\SensitiveParameter] string $user_string)
Definition hash.stub.php:65
hash_hmac_file(string $algo, string $filename, #[\SensitiveParameter] string $key, bool $binary=false)
Definition hash.stub.php:25
hash_init(string $algo, int $flags=0, #[\SensitiveParameter] string $key="", array $options=[])
Definition hash.stub.php:30
hash_final(HashContext $context, bool $binary=false)
Definition hash.stub.php:41
hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary=false)
Definition hash.stub.php:20
hash_hmac_algos()
Definition hash.stub.php:58
hash_hkdf(string $algo, #[\SensitiveParameter] string $key, int $length=0, string $info="", string $salt="")
Definition hash.stub.php:70
hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iterations, int $length=0, bool $binary=false, array $options=[])
Definition hash.stub.php:63
hash(string $algo, string $data, bool $binary=false, array $options=[])
Definition hash.stub.php:12
mhash(int $algo, string $data, ?string $key=null)
Definition hash.stub.php:95
hash_update_file(HashContext $context, string $filename, $stream_context=null)
Definition hash.stub.php:38
const HASH_HMAC
Definition hash.stub.php:9
mhash_keygen_s2k(int $algo, string $password, string $salt, int $length)
Definition hash.stub.php:86
hash_copy(HashContext $context)
Definition hash.stub.php:44
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))