diff options
Diffstat (limited to 'libhashkit-1.0/digest.h')
-rw-r--r-- | libhashkit-1.0/digest.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libhashkit-1.0/digest.h b/libhashkit-1.0/digest.h new file mode 100644 index 00000000..5a226b01 --- /dev/null +++ b/libhashkit-1.0/digest.h @@ -0,0 +1,27 @@ +/* HashKit + * Copyright (C) 2010 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +HASHKIT_API +uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length); + +/** + This is a utilitly function provided so that you can directly access hashes with a hashkit_st. +*/ + +HASHKIT_API +uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algorithm_t hash_algorithm); + +#ifdef __cplusplus +} +#endif |