php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash_crc32.c File Reference

Go to the source code of this file.

Functions

PHP_HASH_API void PHP_CRC32Init (PHP_CRC32_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
 
PHP_HASH_API void PHP_CRC32Update (PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
 
PHP_HASH_API void PHP_CRC32BUpdate (PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
 
PHP_HASH_API void PHP_CRC32CUpdate (PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
 
PHP_HASH_API void PHP_CRC32LEFinal (unsigned char digest[4], PHP_CRC32_CTX *context)
 
PHP_HASH_API void PHP_CRC32BEFinal (unsigned char digest[4], PHP_CRC32_CTX *context)
 
PHP_HASH_API zend_result PHP_CRC32Copy (const php_hash_ops *ops, const PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context)
 

Variables

const php_hash_ops php_hash_crc32_ops
 
const php_hash_ops php_hash_crc32b_ops
 
const php_hash_ops php_hash_crc32c_ops
 

Function Documentation

◆ PHP_CRC32BEFinal()

PHP_HASH_API void PHP_CRC32BEFinal ( unsigned char digest[4],
PHP_CRC32_CTX * context )

Definition at line 77 of file hash_crc32.c.

◆ PHP_CRC32BUpdate()

PHP_HASH_API void PHP_CRC32BUpdate ( PHP_CRC32_CTX * context,
const unsigned char * input,
size_t len )

Definition at line 41 of file hash_crc32.c.

◆ PHP_CRC32Copy()

PHP_HASH_API zend_result PHP_CRC32Copy ( const php_hash_ops * ops,
const PHP_CRC32_CTX * orig_context,
PHP_CRC32_CTX * copy_context )

Definition at line 87 of file hash_crc32.c.

◆ PHP_CRC32CUpdate()

PHP_HASH_API void PHP_CRC32CUpdate ( PHP_CRC32_CTX * context,
const unsigned char * input,
size_t len )

Definition at line 54 of file hash_crc32.c.

◆ PHP_CRC32Init()

PHP_HASH_API void PHP_CRC32Init ( PHP_CRC32_CTX * context,
ZEND_ATTRIBUTE_UNUSED HashTable * args )

Definition at line 23 of file hash_crc32.c.

◆ PHP_CRC32LEFinal()

PHP_HASH_API void PHP_CRC32LEFinal ( unsigned char digest[4],
PHP_CRC32_CTX * context )

Definition at line 67 of file hash_crc32.c.

◆ PHP_CRC32Update()

PHP_HASH_API void PHP_CRC32Update ( PHP_CRC32_CTX * context,
const unsigned char * input,
size_t len )

Definition at line 28 of file hash_crc32.c.

Variable Documentation

◆ php_hash_crc32_ops

const php_hash_ops php_hash_crc32_ops
Initial value:
= {
"crc32",
4,
4,
sizeof(PHP_CRC32_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 void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
Definition hash_crc32.c:28
PHP_HASH_API void PHP_CRC32LEFinal(unsigned char digest[4], PHP_CRC32_CTX *context)
Definition hash_crc32.c:67
PHP_HASH_API zend_result PHP_CRC32Copy(const php_hash_ops *ops, const PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context)
Definition hash_crc32.c:87
PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
Definition hash_crc32.c:23
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_CRC32_SPEC

Definition at line 93 of file hash_crc32.c.

◆ php_hash_crc32b_ops

const php_hash_ops php_hash_crc32b_ops
Initial value:
= {
"crc32b",
4,
4,
sizeof(PHP_CRC32_CTX),
0
}
PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
Definition hash_crc32.c:41
PHP_HASH_API void PHP_CRC32BEFinal(unsigned char digest[4], PHP_CRC32_CTX *context)
Definition hash_crc32.c:77

Definition at line 108 of file hash_crc32.c.

◆ php_hash_crc32c_ops

const php_hash_ops php_hash_crc32c_ops
Initial value:
= {
"crc32c",
4,
4,
sizeof(PHP_CRC32_CTX),
0
}
PHP_HASH_API void PHP_CRC32CUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len)
Definition hash_crc32.c:54

Definition at line 123 of file hash_crc32.c.