diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-12 13:48:30 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-12 13:48:30 +0100 |
| commit | f93d52bbd0053574fb35d72b85c4b299dc1f3ee5 (patch) | |
| tree | 4a2120a162ce9161d70074fd9ffa3ed21d80a40e /libcmix-common | |
| parent | 8ff9babe2da4a2efc8529e800a6093fbd0327286 (diff) | |
| download | cmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.tar.gz cmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.tar.bz2 cmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.zip | |
Fixes decryption share calculation, adds lots of debugging statements.
Diffstat (limited to 'libcmix-common')
| -rw-r--r-- | libcmix-common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | libcmix-common/cmixprotofunctor.hpp | 14 | ||||
| -rw-r--r-- | libcmix-common/senderreceiver.cpp | 1 |
3 files changed, 14 insertions, 3 deletions
diff --git a/libcmix-common/CMakeLists.txt b/libcmix-common/CMakeLists.txt index cc3125c..71aa472 100644 --- a/libcmix-common/CMakeLists.txt +++ b/libcmix-common/CMakeLists.txt @@ -3,7 +3,7 @@ add_library(cmix-common cmixprotofunctor.hpp receiver.hpp sender.hpp - senderreceiver.hpp senderreceiver.cpp + senderreceiver.hpp ) target_include_directories(cmix-common diff --git a/libcmix-common/cmixprotofunctor.hpp b/libcmix-common/cmixprotofunctor.hpp index effa8bd..0055593 100644 --- a/libcmix-common/cmixprotofunctor.hpp +++ b/libcmix-common/cmixprotofunctor.hpp @@ -37,9 +37,19 @@ struct CMixProtoFunctor { return m; \ } \ + /*! + * \def MESSAGE_SETTER_DEF_ITERATION(Z, N, DATA) + * Defines one iteration of the Repeat below, + * \param Z level over repeat we are using it should be 1. + * \param N current iteration + * \param The sequence consisiting of "pairs" of TYPE, NAME + */ #define MESSAGE_SETTER_DEF_ITERATION(Z, N, DATA) \ MESSAGE_SETTER_DEF(BOOST_PP_SEQ_ELEM(BOOST_PP_MUL(N, 2), DATA), BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(N, 2), 1), DATA)) + /*! + * Loops over the length of the variadic macro parameter / 2 + */ #define MESSAGE_SETTER_DEFS(...) \ BOOST_PP_REPEAT(BOOST_PP_DIV(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 2), MESSAGE_SETTER_DEF_ITERATION, BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__)) @@ -54,7 +64,9 @@ struct CMixProtoFunctor { UserMessage, usermessage, PrePre, prepre, PreMix, premix, - PrePost, prepost + PrePost, prepost, + RealPre, realpre, + RealMix, realmix, ) #undef MESSAGE_SETTER_DEFS #undef MESSAGE_SETTER_DEF_ITERATION diff --git a/libcmix-common/senderreceiver.cpp b/libcmix-common/senderreceiver.cpp deleted file mode 100644 index 8b13789..0000000 --- a/libcmix-common/senderreceiver.cpp +++ /dev/null @@ -1 +0,0 @@ - |
