php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: b0fe91da9b0469b44a9647b774b9b00498592e30 */
3
10
12 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
13 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
17
18ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_hmac, 0, 3, IS_STRING, 0)
19 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
24
26 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
27 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
31
32ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_hash_init, 0, 1, HashContext, 0)
33 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
38
39ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update, 0, 2, IS_TRUE, 0)
43
44ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update_stream, 0, 2, IS_LONG, 0)
46 ZEND_ARG_INFO(0, stream)
49
50ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update_file, 0, 2, _IS_BOOL, 0)
52 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
53 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, stream_context, "null")
55
56ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_final, 0, 1, IS_STRING, 0)
60
61ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_hash_copy, 0, 1, HashContext, 0)
64
65ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_algos, 0, 0, IS_ARRAY, 0)
67
68#define arginfo_hash_hmac_algos arginfo_hash_algos
69
70ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_pbkdf2, 0, 4, IS_STRING, 0)
71 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
72 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
73 ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0)
74 ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0)
79
80ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_equals, 0, 2, _IS_BOOL, 0)
81 ZEND_ARG_TYPE_INFO(0, known_string, IS_STRING, 0)
82 ZEND_ARG_TYPE_INFO(0, user_string, IS_STRING, 0)
84
85ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_hkdf, 0, 2, IS_STRING, 0)
86 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
92
93#if defined(PHP_MHASH_BC)
94ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_get_block_size, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
95 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
97
99 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
101
103 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
104 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
105 ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0)
106 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
108
109ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mhash_count, 0, 0, IS_LONG, 0)
111
113 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
117#endif
118
119ZEND_BEGIN_ARG_INFO_EX(arginfo_class_HashContext___construct, 0, 0, 0)
121
122#define arginfo_class_HashContext___serialize arginfo_hash_algos
123
124ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_HashContext___unserialize, 0, 1, IS_VOID, 0)
127
128#define arginfo_class_HashContext___debugInfo arginfo_hash_algos
129
145#if defined(PHP_MHASH_BC)
151#endif
154ZEND_METHOD(HashContext, __unserialize);
155ZEND_METHOD(HashContext, __debugInfo);
156
157static const zend_function_entry ext_functions[] = {
158 ZEND_FE(hash, arginfo_hash)
159 ZEND_FE(hash_file, arginfo_hash_file)
160 ZEND_FE(hash_hmac, arginfo_hash_hmac)
161 ZEND_FE(hash_hmac_file, arginfo_hash_hmac_file)
162 ZEND_FE(hash_init, arginfo_hash_init)
163 ZEND_FE(hash_update, arginfo_hash_update)
164 ZEND_FE(hash_update_stream, arginfo_hash_update_stream)
165 ZEND_FE(hash_update_file, arginfo_hash_update_file)
166 ZEND_FE(hash_final, arginfo_hash_final)
167 ZEND_FE(hash_copy, arginfo_hash_copy)
168 ZEND_RAW_FENTRY("hash_algos", zif_hash_algos, arginfo_hash_algos, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
169 ZEND_RAW_FENTRY("hash_hmac_algos", zif_hash_hmac_algos, arginfo_hash_hmac_algos, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
170 ZEND_FE(hash_pbkdf2, arginfo_hash_pbkdf2)
171 ZEND_FE(hash_equals, arginfo_hash_equals)
172 ZEND_FE(hash_hkdf, arginfo_hash_hkdf)
173#if defined(PHP_MHASH_BC)
174 ZEND_RAW_FENTRY("mhash_get_block_size", zif_mhash_get_block_size, arginfo_mhash_get_block_size, ZEND_ACC_DEPRECATED, NULL, NULL)
175 ZEND_RAW_FENTRY("mhash_get_hash_name", zif_mhash_get_hash_name, arginfo_mhash_get_hash_name, ZEND_ACC_DEPRECATED, NULL, NULL)
176 ZEND_RAW_FENTRY("mhash_keygen_s2k", zif_mhash_keygen_s2k, arginfo_mhash_keygen_s2k, ZEND_ACC_DEPRECATED, NULL, NULL)
177 ZEND_RAW_FENTRY("mhash_count", zif_mhash_count, arginfo_mhash_count, ZEND_ACC_DEPRECATED, NULL, NULL)
178 ZEND_RAW_FENTRY("mhash", zif_mhash, arginfo_mhash, ZEND_ACC_DEPRECATED, NULL, NULL)
179#endif
181};
182
183static const zend_function_entry class_HashContext_methods[] = {
184 ZEND_ME(HashContext, __construct, arginfo_class_HashContext___construct, ZEND_ACC_PRIVATE)
186 ZEND_ME(HashContext, __unserialize, arginfo_class_HashContext___unserialize, ZEND_ACC_PUBLIC)
189};
190
191static void register_hash_symbols(int module_number)
192{
194
195
196 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac", sizeof("hash_hmac") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
197
198 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac_file", sizeof("hash_hmac_file") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
199
200 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_init", sizeof("hash_init") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
201
202 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_pbkdf2", sizeof("hash_pbkdf2") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
203
204 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("hash_equals") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
205
206 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("hash_equals") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
207
208 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hkdf", sizeof("hash_hkdf") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
209#if defined(PHP_MHASH_BC)
210
211 zend_attribute *attribute_Deprecated_func_mhash_get_block_size_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "mhash_get_block_size", sizeof("mhash_get_block_size") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
212 zval attribute_Deprecated_func_mhash_get_block_size_0_arg0;
213 zend_string *attribute_Deprecated_func_mhash_get_block_size_0_arg0_str = zend_string_init("8.1", strlen("8.1"), 1);
214 ZVAL_STR(&attribute_Deprecated_func_mhash_get_block_size_0_arg0, attribute_Deprecated_func_mhash_get_block_size_0_arg0_str);
215 ZVAL_COPY_VALUE(&attribute_Deprecated_func_mhash_get_block_size_0->args[0].value, &attribute_Deprecated_func_mhash_get_block_size_0_arg0);
216 attribute_Deprecated_func_mhash_get_block_size_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
217
218 zend_attribute *attribute_Deprecated_func_mhash_get_hash_name_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "mhash_get_hash_name", sizeof("mhash_get_hash_name") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
219 zval attribute_Deprecated_func_mhash_get_hash_name_0_arg0;
220 zend_string *attribute_Deprecated_func_mhash_get_hash_name_0_arg0_str = zend_string_init("8.1", strlen("8.1"), 1);
221 ZVAL_STR(&attribute_Deprecated_func_mhash_get_hash_name_0_arg0, attribute_Deprecated_func_mhash_get_hash_name_0_arg0_str);
222 ZVAL_COPY_VALUE(&attribute_Deprecated_func_mhash_get_hash_name_0->args[0].value, &attribute_Deprecated_func_mhash_get_hash_name_0_arg0);
223 attribute_Deprecated_func_mhash_get_hash_name_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
224
225 zend_attribute *attribute_Deprecated_func_mhash_keygen_s2k_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "mhash_keygen_s2k", sizeof("mhash_keygen_s2k") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
226 zval attribute_Deprecated_func_mhash_keygen_s2k_0_arg0;
227 zend_string *attribute_Deprecated_func_mhash_keygen_s2k_0_arg0_str = zend_string_init("8.1", strlen("8.1"), 1);
228 ZVAL_STR(&attribute_Deprecated_func_mhash_keygen_s2k_0_arg0, attribute_Deprecated_func_mhash_keygen_s2k_0_arg0_str);
229 ZVAL_COPY_VALUE(&attribute_Deprecated_func_mhash_keygen_s2k_0->args[0].value, &attribute_Deprecated_func_mhash_keygen_s2k_0_arg0);
230 attribute_Deprecated_func_mhash_keygen_s2k_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
231
232 zend_attribute *attribute_Deprecated_func_mhash_count_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "mhash_count", sizeof("mhash_count") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
233 zval attribute_Deprecated_func_mhash_count_0_arg0;
234 zend_string *attribute_Deprecated_func_mhash_count_0_arg0_str = zend_string_init("8.1", strlen("8.1"), 1);
235 ZVAL_STR(&attribute_Deprecated_func_mhash_count_0_arg0, attribute_Deprecated_func_mhash_count_0_arg0_str);
236 ZVAL_COPY_VALUE(&attribute_Deprecated_func_mhash_count_0->args[0].value, &attribute_Deprecated_func_mhash_count_0_arg0);
237 attribute_Deprecated_func_mhash_count_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
238
239 zend_attribute *attribute_Deprecated_func_mhash_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "mhash", sizeof("mhash") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
240 zval attribute_Deprecated_func_mhash_0_arg0;
241 zend_string *attribute_Deprecated_func_mhash_0_arg0_str = zend_string_init("8.1", strlen("8.1"), 1);
242 ZVAL_STR(&attribute_Deprecated_func_mhash_0_arg0, attribute_Deprecated_func_mhash_0_arg0_str);
243 ZVAL_COPY_VALUE(&attribute_Deprecated_func_mhash_0->args[0].value, &attribute_Deprecated_func_mhash_0_arg0);
244 attribute_Deprecated_func_mhash_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
245#endif
246}
247
248static zend_class_entry *register_class_HashContext(void)
249{
250 zend_class_entry ce, *class_entry;
251
252 INIT_CLASS_ENTRY(ce, "HashContext", class_HashContext_methods);
254
255 return class_entry;
256}
#define NULL
Definition gdcache.h:45
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
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
#define arginfo_class_HashContext___debugInfo
#define arginfo_hash_hmac_algos
#define arginfo_class_HashContext___serialize
#define PHP_HASH_HMAC
Definition php_hash.h:26
PHP_JSON_API size_t int options
Definition php_json.h:102
unsigned char key[REFLECTION_KEY_LEN]
zend_constant * data
zend_attribute_arg args[1]
Definition dce.c:49
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, class_name, allow_null)
Definition zend_API.h:172
#define ZEND_METHOD(classname, name)
Definition zend_API.h:76
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, class_name, allow_null)
Definition zend_API.h:154
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args)
Definition zend_API.h:214
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_ME(classname, name, arg_info, flags)
Definition zend_API.h:91
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
Definition zend_API.h:132
struct _zend_attribute zend_attribute
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_FINAL
#define ZEND_ACC_COMPILE_TIME_EVAL
#define ZEND_ACC_PRIVATE
#define ZEND_ACC_PUBLIC
#define ZEND_ACC_DEPRECATED
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
#define CG(v)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define ZSTR_KNOWN(idx)
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define MAY_BE_LONG
#define IS_TRUE
Definition zend_types.h:603
#define ZVAL_STR(z, s)
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629
#define ZVAL_COPY_VALUE(z, v)