1 /* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: ae4f5ceba77eee7062cbd2fadb112aac33d198ce */ 3 4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash, 0, 2, IS_STRING, 0) 5 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 6 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) 7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 8 ZEND_END_ARG_INFO() 9 10 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash_file, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) 11 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 12 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 14 ZEND_END_ARG_INFO() 15 16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_hmac, 0, 3, IS_STRING, 0) 17 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 18 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) 19 ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) 20 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 21 ZEND_END_ARG_INFO() 22 23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash_hmac_file, 0, 3, MAY_BE_STRING|MAY_BE_FALSE) 24 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 25 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 26 ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) 27 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 28 ZEND_END_ARG_INFO() 29 30 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_hash_init, 0, 1, HashContext, 0) 31 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 32 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0") 33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, key, IS_STRING, 0, "\"\"") 34 ZEND_END_ARG_INFO() 35 36 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update, 0, 2, _IS_BOOL, 0) 37 ZEND_ARG_OBJ_INFO(0, context, HashContext, 0) 38 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) 39 ZEND_END_ARG_INFO() 40 41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update_stream, 0, 2, IS_LONG, 0) 42 ZEND_ARG_OBJ_INFO(0, context, HashContext, 0) 43 ZEND_ARG_INFO(0, stream) 44 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "-1") 45 ZEND_END_ARG_INFO() 46 47 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_update_file, 0, 2, _IS_BOOL, 0) 48 ZEND_ARG_OBJ_INFO(0, context, HashContext, 0) 49 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 50 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, stream_context, "null") 51 ZEND_END_ARG_INFO() 52 53 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_final, 0, 1, IS_STRING, 0) 54 ZEND_ARG_OBJ_INFO(0, context, HashContext, 0) 55 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 56 ZEND_END_ARG_INFO() 57 58 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_hash_copy, 0, 1, HashContext, 0) 59 ZEND_ARG_OBJ_INFO(0, context, HashContext, 0) 60 ZEND_END_ARG_INFO() 61 62 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_algos, 0, 0, IS_ARRAY, 0) 63 ZEND_END_ARG_INFO() 64 65 #define arginfo_hash_hmac_algos arginfo_hash_algos 66 67 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_pbkdf2, 0, 4, IS_STRING, 0) 68 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 69 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0) 70 ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0) 71 ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) 72 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "0") 73 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false") 74 ZEND_END_ARG_INFO() 75 76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_equals, 0, 2, _IS_BOOL, 0) 77 ZEND_ARG_TYPE_INFO(0, known_string, IS_STRING, 0) 78 ZEND_ARG_TYPE_INFO(0, user_string, IS_STRING, 0) 79 ZEND_END_ARG_INFO() 80 81 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash_hkdf, 0, 2, IS_STRING, 0) 82 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 83 ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) 84 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "0") 85 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, info, IS_STRING, 0, "\"\"") 86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, salt, IS_STRING, 0, "\"\"") 87 ZEND_END_ARG_INFO() 88 89 #if defined(PHP_MHASH_BC) 90 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_get_block_size, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) 91 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) 92 ZEND_END_ARG_INFO() 93 #endif 94 95 #if defined(PHP_MHASH_BC) 96 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_get_hash_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) 97 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) 98 ZEND_END_ARG_INFO() 99 #endif 100 101 #if defined(PHP_MHASH_BC) 102 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_keygen_s2k, 0, 4, MAY_BE_STRING|MAY_BE_FALSE) 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) 107 ZEND_END_ARG_INFO() 108 #endif 109 110 #if defined(PHP_MHASH_BC) 111 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mhash_count, 0, 0, IS_LONG, 0) 112 ZEND_END_ARG_INFO() 113 #endif 114 115 #if defined(PHP_MHASH_BC) 116 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) 117 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) 118 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) 119 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, key, IS_STRING, 1, "null") 120 ZEND_END_ARG_INFO() 121 #endif 122 123 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_HashContext___construct, 0, 0, 0) 124 ZEND_END_ARG_INFO() 125 126 #define arginfo_class_HashContext___serialize arginfo_hash_algos 127 128 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_HashContext___unserialize, 0, 1, IS_VOID, 0) 129 ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0) 130 ZEND_END_ARG_INFO() 131 132 133 ZEND_FUNCTION(hash); 134 ZEND_FUNCTION(hash_file); 135 ZEND_FUNCTION(hash_hmac); 136 ZEND_FUNCTION(hash_hmac_file); 137 ZEND_FUNCTION(hash_init); 138 ZEND_FUNCTION(hash_update); 139 ZEND_FUNCTION(hash_update_stream); 140 ZEND_FUNCTION(hash_update_file); 141 ZEND_FUNCTION(hash_final); 142 ZEND_FUNCTION(hash_copy); 143 ZEND_FUNCTION(hash_algos); 144 ZEND_FUNCTION(hash_hmac_algos); 145 ZEND_FUNCTION(hash_pbkdf2); 146 ZEND_FUNCTION(hash_equals); 147 ZEND_FUNCTION(hash_hkdf); 148 #if defined(PHP_MHASH_BC) 149 ZEND_FUNCTION(mhash_get_block_size); 150 #endif 151 #if defined(PHP_MHASH_BC) 152 ZEND_FUNCTION(mhash_get_hash_name); 153 #endif 154 #if defined(PHP_MHASH_BC) 155 ZEND_FUNCTION(mhash_keygen_s2k); 156 #endif 157 #if defined(PHP_MHASH_BC) 158 ZEND_FUNCTION(mhash_count); 159 #endif 160 #if defined(PHP_MHASH_BC) 161 ZEND_FUNCTION(mhash); 162 #endif 163 ZEND_METHOD(HashContext, __construct); 164 ZEND_METHOD(HashContext, __serialize); 165 ZEND_METHOD(HashContext, __unserialize); 166 167 168 static const zend_function_entry ext_functions[] = { 169 ZEND_FE(hash, arginfo_hash) 170 ZEND_FE(hash_file, arginfo_hash_file) 171 ZEND_FE(hash_hmac, arginfo_hash_hmac) 172 ZEND_FE(hash_hmac_file, arginfo_hash_hmac_file) 173 ZEND_FE(hash_init, arginfo_hash_init) 174 ZEND_FE(hash_update, arginfo_hash_update) 175 ZEND_FE(hash_update_stream, arginfo_hash_update_stream) 176 ZEND_FE(hash_update_file, arginfo_hash_update_file) 177 ZEND_FE(hash_final, arginfo_hash_final) 178 ZEND_FE(hash_copy, arginfo_hash_copy) 179 ZEND_FE(hash_algos, arginfo_hash_algos) 180 ZEND_FE(hash_hmac_algos, arginfo_hash_hmac_algos) 181 ZEND_FE(hash_pbkdf2, arginfo_hash_pbkdf2) 182 ZEND_FE(hash_equals, arginfo_hash_equals) 183 ZEND_FE(hash_hkdf, arginfo_hash_hkdf) 184 #if defined(PHP_MHASH_BC) 185 ZEND_FE(mhash_get_block_size, arginfo_mhash_get_block_size) 186 #endif 187 #if defined(PHP_MHASH_BC) 188 ZEND_FE(mhash_get_hash_name, arginfo_mhash_get_hash_name) 189 #endif 190 #if defined(PHP_MHASH_BC) 191 ZEND_FE(mhash_keygen_s2k, arginfo_mhash_keygen_s2k) 192 #endif 193 #if defined(PHP_MHASH_BC) 194 ZEND_FE(mhash_count, arginfo_mhash_count) 195 #endif 196 #if defined(PHP_MHASH_BC) 197 ZEND_FE(mhash, arginfo_mhash) 198 #endif 199 ZEND_FE_END 200 }; 201 202 203 static const zend_function_entry class_HashContext_methods[] = { 204 ZEND_ME(HashContext, __construct, arginfo_class_HashContext___construct, ZEND_ACC_PRIVATE) 205 ZEND_ME(HashContext, __serialize, arginfo_class_HashContext___serialize, ZEND_ACC_PUBLIC) 206 ZEND_ME(HashContext, __unserialize, arginfo_class_HashContext___unserialize, ZEND_ACC_PUBLIC) 207 ZEND_FE_END 208 }; 209