php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash_murmur.c File Reference
#include "php_hash.h"
#include "php_hash_murmur.h"
#include "murmur/PMurHash.h"
#include "murmur/PMurHash128.h"

Go to the source code of this file.

Functions

PHP_HASH_API void PHP_MURMUR3AInit (PHP_MURMUR3A_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_MURMUR3AUpdate (PHP_MURMUR3A_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_MURMUR3AFinal (unsigned char digest[4], PHP_MURMUR3A_CTX *ctx)
 
PHP_HASH_API zend_result PHP_MURMUR3ACopy (const php_hash_ops *ops, const PHP_MURMUR3A_CTX *orig_context, PHP_MURMUR3A_CTX *copy_context)
 
PHP_HASH_API void PHP_MURMUR3CInit (PHP_MURMUR3C_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_MURMUR3CUpdate (PHP_MURMUR3C_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_MURMUR3CFinal (unsigned char digest[16], PHP_MURMUR3C_CTX *ctx)
 
PHP_HASH_API zend_result PHP_MURMUR3CCopy (const php_hash_ops *ops, const PHP_MURMUR3C_CTX *orig_context, PHP_MURMUR3C_CTX *copy_context)
 
PHP_HASH_API void PHP_MURMUR3FInit (PHP_MURMUR3F_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_MURMUR3FUpdate (PHP_MURMUR3F_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_MURMUR3FFinal (unsigned char digest[16], PHP_MURMUR3F_CTX *ctx)
 
PHP_HASH_API zend_result PHP_MURMUR3FCopy (const php_hash_ops *ops, const PHP_MURMUR3F_CTX *orig_context, PHP_MURMUR3F_CTX *copy_context)
 

Variables

const php_hash_ops php_hash_murmur3a_ops
 
const php_hash_ops php_hash_murmur3c_ops
 
const php_hash_ops php_hash_murmur3f_ops
 

Function Documentation

◆ PHP_MURMUR3ACopy()

PHP_HASH_API zend_result PHP_MURMUR3ACopy ( const php_hash_ops * ops,
const PHP_MURMUR3A_CTX * orig_context,
PHP_MURMUR3A_CTX * copy_context )

Definition at line 78 of file hash_murmur.c.

◆ PHP_MURMUR3AFinal()

PHP_HASH_API void PHP_MURMUR3AFinal ( unsigned char digest[4],
PHP_MURMUR3A_CTX * ctx )

Definition at line 68 of file hash_murmur.c.

◆ PHP_MURMUR3AInit()

PHP_HASH_API void PHP_MURMUR3AInit ( PHP_MURMUR3A_CTX * ctx,
HashTable * args )

Definition at line 39 of file hash_murmur.c.

◆ PHP_MURMUR3AUpdate()

PHP_HASH_API void PHP_MURMUR3AUpdate ( PHP_MURMUR3A_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 62 of file hash_murmur.c.

◆ PHP_MURMUR3CCopy()

PHP_HASH_API zend_result PHP_MURMUR3CCopy ( const php_hash_ops * ops,
const PHP_MURMUR3C_CTX * orig_context,
PHP_MURMUR3C_CTX * copy_context )

Definition at line 157 of file hash_murmur.c.

◆ PHP_MURMUR3CFinal()

PHP_HASH_API void PHP_MURMUR3CFinal ( unsigned char digest[16],
PHP_MURMUR3C_CTX * ctx )

Definition at line 134 of file hash_murmur.c.

◆ PHP_MURMUR3CInit()

PHP_HASH_API void PHP_MURMUR3CInit ( PHP_MURMUR3C_CTX * ctx,
HashTable * args )

Definition at line 101 of file hash_murmur.c.

◆ PHP_MURMUR3CUpdate()

PHP_HASH_API void PHP_MURMUR3CUpdate ( PHP_MURMUR3C_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 128 of file hash_murmur.c.

◆ PHP_MURMUR3FCopy()

PHP_HASH_API zend_result PHP_MURMUR3FCopy ( const php_hash_ops * ops,
const PHP_MURMUR3F_CTX * orig_context,
PHP_MURMUR3F_CTX * copy_context )

Definition at line 234 of file hash_murmur.c.

◆ PHP_MURMUR3FFinal()

PHP_HASH_API void PHP_MURMUR3FFinal ( unsigned char digest[16],
PHP_MURMUR3F_CTX * ctx )

Definition at line 211 of file hash_murmur.c.

◆ PHP_MURMUR3FInit()

PHP_HASH_API void PHP_MURMUR3FInit ( PHP_MURMUR3F_CTX * ctx,
HashTable * args )

Definition at line 180 of file hash_murmur.c.

◆ PHP_MURMUR3FUpdate()

PHP_HASH_API void PHP_MURMUR3FUpdate ( PHP_MURMUR3F_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 205 of file hash_murmur.c.

Variable Documentation

◆ php_hash_murmur3a_ops

const php_hash_ops php_hash_murmur3a_ops
Initial value:
= {
"murmur3a",
4,
4,
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_MURMUR3AFinal(unsigned char digest[4], PHP_MURMUR3A_CTX *ctx)
Definition hash_murmur.c:68
PHP_HASH_API void PHP_MURMUR3AInit(PHP_MURMUR3A_CTX *ctx, HashTable *args)
Definition hash_murmur.c:39
PHP_HASH_API zend_result PHP_MURMUR3ACopy(const php_hash_ops *ops, const PHP_MURMUR3A_CTX *orig_context, PHP_MURMUR3A_CTX *copy_context)
Definition hash_murmur.c:78
PHP_HASH_API void PHP_MURMUR3AUpdate(PHP_MURMUR3A_CTX *ctx, const unsigned char *in, size_t len)
Definition hash_murmur.c:62
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_MURMUR3A_SPEC

Definition at line 24 of file hash_murmur.c.

◆ php_hash_murmur3c_ops

const php_hash_ops php_hash_murmur3c_ops
Initial value:
= {
"murmur3c",
16,
4,
0
}
PHP_HASH_API void PHP_MURMUR3CInit(PHP_MURMUR3C_CTX *ctx, HashTable *args)
PHP_HASH_API zend_result PHP_MURMUR3CCopy(const php_hash_ops *ops, const PHP_MURMUR3C_CTX *orig_context, PHP_MURMUR3C_CTX *copy_context)
PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char *in, size_t len)
PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx)
#define PHP_MURMUR3C_SPEC

Definition at line 86 of file hash_murmur.c.

◆ php_hash_murmur3f_ops

const php_hash_ops php_hash_murmur3f_ops
Initial value:
= {
"murmur3f",
16,
8,
0
}
PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx)
PHP_HASH_API void PHP_MURMUR3FInit(PHP_MURMUR3F_CTX *ctx, HashTable *args)
PHP_HASH_API void PHP_MURMUR3FUpdate(PHP_MURMUR3F_CTX *ctx, const unsigned char *in, size_t len)
PHP_HASH_API zend_result PHP_MURMUR3FCopy(const php_hash_ops *ops, const PHP_MURMUR3F_CTX *orig_context, PHP_MURMUR3F_CTX *copy_context)
#define PHP_MURMUR3F_SPEC

Definition at line 165 of file hash_murmur.c.