summaryrefslogtreecommitdiff
path: root/libhashkit-1.0/hashkit.h
diff options
context:
space:
mode:
authorBrian Aker <brian@tangent.org>2012-04-08 23:28:51 -0700
committerBrian Aker <brian@tangent.org>2012-04-08 23:28:51 -0700
commit983523c4536f12781533124cb8a00a4291b8cf79 (patch)
tree39ec0be421e65692afe5de07b8255d2c7c0dae7d /libhashkit-1.0/hashkit.h
parent3dcd41c50068eec906a1a11a178e9b3f08ef2326 (diff)
downloadlibmemcached-983523c4536f12781533124cb8a00a4291b8cf79.tar.gz
This add AES support.
Diffstat (limited to 'libhashkit-1.0/hashkit.h')
-rw-r--r--libhashkit-1.0/hashkit.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/libhashkit-1.0/hashkit.h b/libhashkit-1.0/hashkit.h
index 97af9866..560763a7 100644
--- a/libhashkit-1.0/hashkit.h
+++ b/libhashkit-1.0/hashkit.h
@@ -55,6 +55,7 @@
#include <libhashkit-1.0/function.h>
#include <libhashkit-1.0/str_algorithm.h>
#include <libhashkit-1.0/strerror.h>
+#include <libhashkit-1.0/string.h>
struct hashkit_st
{
@@ -70,6 +71,8 @@ struct hashkit_st
struct {
bool is_allocated:1;
} options;
+
+ void *_key;
};
#ifdef __cplusplus
@@ -77,16 +80,27 @@ extern "C" {
#endif
HASHKIT_API
-hashkit_st *hashkit_create(hashkit_st *hash);
+ hashkit_st *hashkit_create(hashkit_st *hash);
+
+HASHKIT_API
+ hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
+
+HASHKIT_API
+ bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
+
+HASHKIT_API
+ void hashkit_free(hashkit_st *hash);
HASHKIT_API
-hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
+ hashkit_string_st *hashkit_encrypt(hashkit_st *,
+ const char* source, size_t source_length);
HASHKIT_API
-bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
+ hashkit_string_st *hashkit_decrypt(hashkit_st *,
+ const char* source, size_t source_length);
HASHKIT_API
-void hashkit_free(hashkit_st *hash);
+ bool hashkit_key(hashkit_st *, const char *key, const size_t key_length);
#ifdef __cplusplus
} // extern "C"