2 * Copyright (C) 2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
11 * @brief HashKit Header
14 #ifndef HASHKIT_ALGORITHM_H
15 #define HASHKIT_ALGORITHM_H
22 uint32_t libhashkit_one_at_a_time(const char *key
, size_t key_length
);
25 uint32_t libhashkit_fnv1_64(const char *key
, size_t key_length
);
28 uint32_t libhashkit_fnv1a_64(const char *key
, size_t key_length
);
31 uint32_t libhashkit_fnv1_32(const char *key
, size_t key_length
);
34 uint32_t libhashkit_fnv1a_32(const char *key
, size_t key_length
);
37 uint32_t libhashkit_crc32(const char *key
, size_t key_length
);
39 #ifdef HAVE_HSIEH_HASH
41 uint32_t libhashkit_hsieh(const char *key
, size_t key_length
);
45 uint32_t libhashkit_murmur(const char *key
, size_t key_length
);
48 uint32_t libhashkit_jenkins(const char *key
, size_t key_length
);
51 uint32_t libhashkit_md5(const char *key
, size_t key_length
);
54 uint32_t hashkit_one_at_a_time(const char *key
, size_t key_length
, void *context
);
57 uint32_t hashkit_fnv1_64(const char *key
, size_t key_length
, void *context
);
60 uint32_t hashkit_fnv1a_64(const char *key
, size_t key_length
, void *context
);
63 uint32_t hashkit_fnv1_32(const char *key
, size_t key_length
, void *context
);
66 uint32_t hashkit_fnv1a_32(const char *key
, size_t key_length
, void *context
);
69 uint32_t hashkit_crc32(const char *key
, size_t key_length
, void *context
);
71 #ifdef HAVE_HSIEH_HASH
73 uint32_t hashkit_hsieh(const char *key
, size_t key_length
, void *context
);
77 uint32_t hashkit_murmur(const char *key
, size_t key_length
, void *context
);
80 uint32_t hashkit_jenkins(const char *key
, size_t key_length
, void *context
);
83 uint32_t hashkit_md5(const char *key
, size_t key_length
, void *context
);
86 void libhashkit_md5_signature(const unsigned char *key
, size_t length
, unsigned char *result
);
92 #endif /* HASHKIT_ALGORITHM_H */