php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash_adler32.c File Reference
#include "php_hash.h"
#include "php_hash_adler32.h"

Go to the source code of this file.

Functions

PHP_HASH_API void PHP_ADLER32Init (PHP_ADLER32_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
 
PHP_HASH_API void PHP_ADLER32Update (PHP_ADLER32_CTX *context, const unsigned char *input, size_t len)
 
PHP_HASH_API void PHP_ADLER32Final (unsigned char digest[4], PHP_ADLER32_CTX *context)
 
PHP_HASH_API zend_result PHP_ADLER32Copy (const php_hash_ops *ops, const PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context)
 

Variables

const php_hash_ops php_hash_adler32_ops
 

Function Documentation

◆ PHP_ADLER32Copy()

PHP_HASH_API zend_result PHP_ADLER32Copy ( const php_hash_ops * ops,
const PHP_ADLER32_CTX * orig_context,
PHP_ADLER32_CTX * copy_context )

Definition at line 55 of file hash_adler32.c.

◆ PHP_ADLER32Final()

PHP_HASH_API void PHP_ADLER32Final ( unsigned char digest[4],
PHP_ADLER32_CTX * context )

Definition at line 46 of file hash_adler32.c.

◆ PHP_ADLER32Init()

PHP_HASH_API void PHP_ADLER32Init ( PHP_ADLER32_CTX * context,
ZEND_ATTRIBUTE_UNUSED HashTable * args )

Definition at line 21 of file hash_adler32.c.

◆ PHP_ADLER32Update()

PHP_HASH_API void PHP_ADLER32Update ( PHP_ADLER32_CTX * context,
const unsigned char * input,
size_t len )

Definition at line 26 of file hash_adler32.c.

Variable Documentation

◆ php_hash_adler32_ops

const php_hash_ops php_hash_adler32_ops
Initial value:
= {
"adler32",
4,
4,
sizeof(PHP_ADLER32_CTX),
0
}
PHP_HASH_API zend_result php_hash_serialize(const php_hashcontext_object *hash, zend_long *magic, zval *zv)
Definition hash.c:334
PHP_HASH_API int php_hash_unserialize(php_hashcontext_object *hash, zend_long magic, const zval *zv)
Definition hash.c:345
PHP_HASH_API zend_result PHP_ADLER32Copy(const php_hash_ops *ops, const PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context)
PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len)
PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context)
void(* php_hash_final_func_t)(unsigned char *digest, void *context)
Definition php_hash.h:36
zend_result(* php_hash_copy_func_t)(const void *ops, const void *orig_context, void *dest_context)
Definition php_hash.h:37
void(* php_hash_init_func_t)(void *context, HashTable *args)
Definition php_hash.h:34
void(* php_hash_update_func_t)(void *context, const unsigned char *buf, size_t count)
Definition php_hash.h:35
#define PHP_ADLER32_SPEC

Definition at line 61 of file hash_adler32.c.