1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/hash/hash.stub.php
Christoph M. Becker a6ddd1a14d Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file
2021-12-26 12:59:06 +01:00

88 lines
2.3 KiB
PHP

<?php
/** @generate-class-entries */
/** @refcount 1 */
function hash(string $algo, string $data, bool $binary = false, array $options = []): string {}
/** @refcount 1 */
function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
/** @refcount 1 */
function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string {}
/** @refcount 1 */
function hash_hmac_file(string $algo, string $filename, string $key, bool $binary = false): string|false {}
/** @refcount 1 */
function hash_init(string $algo, int $flags = 0, string $key = "", array $options = []): HashContext {}
function hash_update(HashContext $context, string $data): bool {}
/** @param resource $stream */
function hash_update_stream(HashContext $context, $stream, int $length = -1): int {}
/** @param resource|null $stream_context */
function hash_update_file(HashContext $context, string $filename, $stream_context = null): bool {}
/** @refcount 1 */
function hash_final(HashContext $context, bool $binary = false): string {}
/** @refcount 1 */
function hash_copy(HashContext $context): HashContext {}
/**
* @return array<int, string>
* @refcount 1
*/
function hash_algos(): array {}
/**
* @return array<int, string>
* @refcount 1
*/
function hash_hmac_algos(): array {}
/** @refcount 1 */
function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {}
function hash_equals(string $known_string, string $user_string): bool {}
/** @refcount 1 */
function hash_hkdf(string $algo, string $key, int $length = 0, string $info = "", string $salt = ""): string {}
#ifdef PHP_MHASH_BC
/** @deprecated */
function mhash_get_block_size(int $algo): int|false {}
/**
* @refcount 1
* @deprecated
*/
function mhash_get_hash_name(int $algo): string|false {}
/**
* @refcount 1
* @deprecated
*/
function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {}
/** @deprecated */
function mhash_count(): int {}
/**
* @refcount 1
* @deprecated
*/
function mhash(int $algo, string $data, ?string $key = null): string|false {}
#endif
final class HashContext
{
private function __construct() {}
public function __serialize(): array {}
public function __unserialize(array $data): void {}
}