aboutsummaryrefslogtreecommitdiff
path: root/libcmix/cmix.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-14 11:39:25 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-14 11:39:25 +0200
commit20139a86eddc062fdbaacad0d7d6fdbd999f2e18 (patch)
tree494db5134029fc7e46ffdf0cc2c2d7b5daf33c70 /libcmix/cmix.h
parent366bae00016bfbfdd354ab010555c2927505b2b2 (diff)
downloadcmix-20139a86eddc062fdbaacad0d7d6fdbd999f2e18.tar.gz
cmix-20139a86eddc062fdbaacad0d7d6fdbd999f2e18.tar.bz2
cmix-20139a86eddc062fdbaacad0d7d6fdbd999f2e18.zip
Refactored some code to be more consistent.
Diffstat (limited to 'libcmix/cmix.h')
-rw-r--r--libcmix/cmix.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcmix/cmix.h b/libcmix/cmix.h
index 4a4441b..96d578f 100644
--- a/libcmix/cmix.h
+++ b/libcmix/cmix.h
@@ -2,6 +2,8 @@
extern "C" {
#endif
+#include "bignum.h"
+
/*!
* \file
*/
@@ -22,7 +24,8 @@ struct CMixBuffer {
*/
enum cmix_error {
no_error = 0,
- index_out_of_range = 1000
+ index_out_of_range = 1000,
+ cmix_bignum_error = 2000,
};
/*!
@@ -50,6 +53,8 @@ enum cmix_error get_message(char* message, struct CMixBuffer b, unsigned int ind
*/
enum cmix_error set_message(char const* message, struct CMixBuffer b, unsigned int index);
+enum cmix_error calculate_shared_secret(struct Bignum* result, struct Bignum partial_shared, struct Bignum my_share, struct Bignum mod);
+
#ifdef __cplusplus
} // extern "C"
#endif