#include "flow_hash.h"
Go to the source code of this file.
Functions | |
unsigned | flowkey_hashfcn1 (SFHASHFCN *p, unsigned char *d, int n) |
unsigned | flowkey_hashfcn2 (SFHASHFCN *p, unsigned char *d, int n) |
Definition in file flow_hash.c.
|
hash function that implements sfhashfcn for only the portions a Flowkey that are relevant
Definition at line 30 of file flow_hash.c. References _SFHASHFCN::hardener, _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWKEY::protocol, _FLOWKEY::resp_address, _FLOWKEY::resp_port, _SFHASHFCN::scale, and _SFHASHFCN::seed. Referenced by flowcache_init(). |
|
One that performs less calculations because it doesn't treat each byte of the entity as unique. This is probably less resistant to collisions but the hardener stages should be randomly chosen so that complexity attacks shouldn't succeed without a lot of prior knowledge
Definition at line 82 of file flow_hash.c. References _SFHASHFCN::hardener, _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWKEY::protocol, _FLOWKEY::resp_address, _FLOWKEY::resp_port, _SFHASHFCN::scale, and _SFHASHFCN::seed. Referenced by flowcache_init(). |