aboutsummaryrefslogtreecommitdiff
path: root/libcmix
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-28 13:07:37 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-28 13:07:37 +0100
commitf8a927984a56e75718bfc273b61693442c9ce649 (patch)
tree30c9d3f7b6e0252647cf94a51d018678f22154f0 /libcmix
parent74cea534fd189a2db423ae60997447e66265922b (diff)
downloadcmix-f8a927984a56e75718bfc273b61693442c9ce649.tar.gz
cmix-f8a927984a56e75718bfc273b61693442c9ce649.tar.bz2
cmix-f8a927984a56e75718bfc273b61693442c9ce649.zip
Removed the Bignum abstraction library, as it was not needed.
Diffstat (limited to 'libcmix')
-rw-r--r--libcmix/CMakeLists.txt1
-rw-r--r--libcmix/cmix.c8
-rw-r--r--libcmix/cmix.h9
3 files changed, 0 insertions, 18 deletions
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 <stdio.h>
#include <math.h>
-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;