suricata
|
#include <stdio.h>
#include <time.h>
#include <stdint.h>
#include <sys/param.h>
#include "util-hash-lookup3.h"
Go to the source code of this file.
Macros | |
#define | HASH_LITTLE_ENDIAN 0 |
#define | HASH_BIG_ENDIAN 0 |
#define | rot(x, k) (((x)<<(k)) | ((x)>>(32-(k)))) |
#define | mix(a, b, c) |
#define | final(a, b, c) |
Functions | |
uint32_t | hashword (const uint32_t *k, size_t length, uint32_t initval) |
void | hashword2 (const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb) |
uint32_t | hashlittle (const void *key, size_t length, uint32_t initval) |
uint32_t | hashlittle_safe (const void *key, size_t length, uint32_t initval) |
void | hashlittle2 (const void *key, size_t length, uint32_t *pc, uint32_t *pb) |
uint32_t | hashbig (const void *key, size_t length, uint32_t initval) |
#define final | ( | a, | |
b, | |||
c | |||
) |
#define HASH_BIG_ENDIAN 0 |
Definition at line 65 of file util-hash-lookup3.c.
#define HASH_LITTLE_ENDIAN 0 |
Definition at line 64 of file util-hash-lookup3.c.
#define mix | ( | a, | |
b, | |||
c | |||
) |
#define rot | ( | x, | |
k | |||
) | (((x)<<(k)) | ((x)>>(32-(k)))) |
Definition at line 68 of file util-hash-lookup3.c.
uint32_t hashbig | ( | const void * | key, |
size_t | length, | ||
uint32_t | initval | ||
) |
Definition at line 816 of file util-hash-lookup3.c.
References HASH_BIG_ENDIAN, and mix.
uint32_t hashlittle | ( | const void * | key, |
size_t | length, | ||
uint32_t | initval | ||
) |
Definition at line 281 of file util-hash-lookup3.c.
References HASH_LITTLE_ENDIAN, and mix.
void hashlittle2 | ( | const void * | key, |
size_t | length, | ||
uint32_t * | pc, | ||
uint32_t * | pb | ||
) |
Definition at line 635 of file util-hash-lookup3.c.
References HASH_LITTLE_ENDIAN, and mix.
uint32_t hashlittle_safe | ( | const void * | key, |
size_t | length, | ||
uint32_t | initval | ||
) |
Definition at line 482 of file util-hash-lookup3.c.
References HASH_LITTLE_ENDIAN, and mix.
Referenced by StringHash().
uint32_t hashword | ( | const uint32_t * | k, |
size_t | length, | ||
uint32_t | initval | ||
) |
Definition at line 172 of file util-hash-lookup3.c.
References mix.
Referenced by FlowKeyGetHash(), IPv4Hash(), IPv6Hash(), Md5StrHash(), ROHashInitFinalize(), ROHashLookup(), and Sha256StrHash().
void hashword2 | ( | const uint32_t * | k, |
size_t | length, | ||
uint32_t * | pc, | ||
uint32_t * | pb | ||
) |
Definition at line 216 of file util-hash-lookup3.c.
References mix.