From 20139a86eddc062fdbaacad0d7d6fdbd999f2e18 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Fri, 14 Oct 2016 11:39:25 +0200 Subject: Refactored some code to be more consistent. --- libcmix/cmix.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libcmix/cmix.h') 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 -- cgit v1.2.3-70-g09d2