Changeset e4eaca5
- Timestamp:
- 02/28/18 15:13:55 (4 years ago)
- Branches:
- cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- 92db9e4
- Parents:
- e375e0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/hash_toeplitz.h
r6f7cd4b re4eaca5 28 28 * toeplitz hashing - see microsoft rss code 29 29 */ 30 #include "config.h" 30 31 #include <stdint.h> 31 32 #include <stddef.h> … … 53 54 } toeplitz_conf_t; 54 55 55 void toeplitz_hash_expand_key(toeplitz_conf_t *conf);56 uint32_t toeplitz_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t offset, size_t n, uint32_t result);57 uint32_t toeplitz_first_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t n);58 void toeplitz_init_config(toeplitz_conf_t *conf, bool bidirectional);59 uint64_t toeplitz_hash_packet(const libtrace_packet_t * pkt, const toeplitz_conf_t *cnf);60 void toeplitz_ncreate_bikey(uint8_t *key, size_t num);61 void toeplitz_create_bikey(uint8_t *key);62 void toeplitz_ncreate_unikey(uint8_t *key, size_t num);63 void toeplitz_create_unikey(uint8_t *key);56 DLLEXPORT void toeplitz_hash_expand_key(toeplitz_conf_t *conf); 57 DLLEXPORT uint32_t toeplitz_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t offset, size_t n, uint32_t result); 58 DLLEXPORT uint32_t toeplitz_first_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t n); 59 DLLEXPORT void toeplitz_init_config(toeplitz_conf_t *conf, bool bidirectional); 60 DLLEXPORT uint64_t toeplitz_hash_packet(const libtrace_packet_t * pkt, const toeplitz_conf_t *cnf); 61 DLLEXPORT void toeplitz_ncreate_bikey(uint8_t *key, size_t num); 62 DLLEXPORT void toeplitz_create_bikey(uint8_t *key); 63 DLLEXPORT void toeplitz_ncreate_unikey(uint8_t *key, size_t num); 64 DLLEXPORT void toeplitz_create_unikey(uint8_t *key); 64 65 65 66
Note: See TracChangeset
for help on using the changeset viewer.