From 9531b6bea9fb29074c588a4e4e8838f6d9335a2b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 1 Nov 2016 17:40:17 +0100 Subject: Moves cmix calculation stuff outisde of the node class. Moves the computations and cryptography to the the libcmix library where we can group and memory manage the underlying crypto-library. --- node/node.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node/node.hpp') diff --git a/node/node.hpp b/node/node.hpp index 9e256c7..6587556 100644 --- a/node/node.hpp +++ b/node/node.hpp @@ -6,6 +6,7 @@ #include "sender.hpp" #include "api.h" +#include "cmix.h" #include "cmix.pb.h" @@ -50,7 +51,7 @@ class Node }; boost::asio::io_service io_service; - std::shared_ptr ctx; + std::shared_ptr ssl_ctx; Server server; typedef std::list Purgatory; @@ -66,9 +67,7 @@ class Node SSLReceiver prev_node; SSLSender next_node; - Api api; - KeyPair keypair; - void* network_key; + CMixContext cmix_ctx; std::vector precomputation_data; @@ -83,6 +82,7 @@ class Node void handle_node_initialization(cmix_proto::Initialization const& init); void handle_node_secretkey(cmix_proto::SecretKey const& secret); void handle_node_prepre(cmix_proto::PrePre const& prepre); + void handle_node_premix(cmix_proto::PreMix const& premix); void handle_node_message(cmix_proto::CMixMessage message); void handle_client_keyexchange(ClientConnections::key_type handle, cmix_proto::KeyExchange ke); -- cgit v1.2.3-70-g09d2