summaryrefslogtreecommitdiff
path: root/keystore.h
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2015-06-21 12:13:49 (GMT)
committerSamuel Lidén Borell <samuel@kodafritt.se>2015-06-21 12:13:49 (GMT)
commita0396e8e26799051c457d71c71472d4221f3c06e (patch)
tree79a923ced179c71eb17e402283482c14b374388b /keystore.h
parent0cbb5ec0949033fa7bdd4b2afe72d70c478042dc (diff)
downloadfishlim-a0396e8e26799051c457d71c71472d4221f3c06e.zip
fishlim-a0396e8e26799051c457d71c71472d4221f3c06e.tar.gz
fishlim-a0396e8e26799051c457d71c71472d4221f3c06e.tar.bz2
Implement encryption in CBC mode
Diffstat (limited to 'keystore.h')
-rw-r--r--keystore.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/keystore.h b/keystore.h
index edf5499..ad1aee8 100644
--- a/keystore.h
+++ b/keystore.h
@@ -1,6 +1,6 @@
/*
- Copyright (c) 2010 Samuel Lidén Borell <samuel@kodafritt.se>
+ Copyright (c) 2010-2015 Samuel Lidén Borell <samuel@kodafritt.se>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -32,8 +32,9 @@
#endif
#include <stddef.h>
-char *keystore_get_key(const char *nick);
-bool keystore_store_key(const char *nick, const char *key);
+char *keystore_get_key(const char *nick, bool *is_cbc);
+bool keystore_store_key(const char *nick, const char *key, bool is_cbc);
+bool keystore_set_mode(const char *nick, bool is_cbc);
bool keystore_delete_nick(const char *nick);
void keystore_secure_free(void *ptr, size_t size);