aboutsummaryrefslogtreecommitdiff
path: root/libcmix/cmix.h
diff options
context:
space:
mode:
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