From f8a927984a56e75718bfc273b61693442c9ce649 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 28 Nov 2016 13:07:37 +0100 Subject: Removed the Bignum abstraction library, as it was not needed. --- libcmix/CMakeLists.txt | 1 - libcmix/cmix.c | 8 -------- libcmix/cmix.h | 9 --------- 3 files changed, 18 deletions(-) (limited to 'libcmix') diff --git a/libcmix/CMakeLists.txt b/libcmix/CMakeLists.txt index 5a7761b..a6d1c1b 100644 --- a/libcmix/CMakeLists.txt +++ b/libcmix/CMakeLists.txt @@ -9,5 +9,4 @@ target_include_directories(cmix target_link_libraries(cmix PUBLIC cmix-crypto - PUBLIC cmix-bignum ) diff --git a/libcmix/cmix.c b/libcmix/cmix.c index 2adca78..2311bea 100644 --- a/libcmix/cmix.c +++ b/libcmix/cmix.c @@ -6,14 +6,6 @@ #include #include -enum cmix_error calculate_shared_key_part(struct Bignum* result, struct Bignum partial_shared, struct Bignum my_share, struct Bignum mod) -{ - if(multiply_mod(result, partial_shared, my_share, mod) != NoError) { - return cmix_bignum_error; - } - return no_error; -} - struct CMixContext initialize_cmix_context(struct Api api) { return (struct CMixContext){ .api = api, diff --git a/libcmix/cmix.h b/libcmix/cmix.h index c3eeb3a..0b2a42a 100644 --- a/libcmix/cmix.h +++ b/libcmix/cmix.h @@ -7,7 +7,6 @@ extern "C" { #include "api.h" #include "keypair.h" #include "groupelement.h" -#include "bignum.h" /*! * \file @@ -35,15 +34,7 @@ enum cmix_error { }; /*! - * \brief calculate_shared_key_part Calculates (partly) the shared key which is needed by all the nodes. - * \param result Storage for the result - * \param partial_shared The shared key so far. - * \param my_share My part to add to the key. - * \param mod The modulus of the group we are in. - * \return An error_code. */ -enum cmix_error calculate_shared_key_part(struct Bignum* result, struct Bignum partial_shared, struct Bignum my_share, struct Bignum mod); - struct CMixContext { struct Api api; struct KeyPair keypair; -- cgit v1.2.3-70-g09d2