From 126021b3766e6fb33333b7939d78dadd1c632eb4 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sat, 23 Dec 2017 17:49:59 +0100 Subject: Preparing multiple mixes --- libcmix/cmix.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libcmix/cmix.h') diff --git a/libcmix/cmix.h b/libcmix/cmix.h index 563fc02..f060762 100644 --- a/libcmix/cmix.h +++ b/libcmix/cmix.h @@ -45,12 +45,13 @@ struct CMixContext { struct Api api; ///< The crypto api in use. struct KeyPair keypair; ///< The keypair used in the crypto api. GroupElement network_key; ///< The network key (called d in the paper). + size_t nr_mixes; ///< The amount of mixes to do simultanuous size_t nr_participants; ///< The number of mix participants. - GroupElement* r; ///< An array of random values (R in the paper). - GroupElement* s; ///< An array of random values (S in the paper). - unsigned int* permutation; ///< a permutation (Pi in the paper (called Pi in source)). - GroupElement* decryption_shares; ///< The decryption share for each slot. - GroupElement* EPiRS; ///< stores teh current Pi(R) * S for this node. Only usfull for the last node. + GroupElement** r; ///< An array of random values (R in the paper). + GroupElement** s; ///< An array of random values (S in the paper). + unsigned int** permutation; ///< a permutation (Pi in the paper (called Pi in source)). + GroupElement** decryption_shares; ///< The decryption share for each slot. + GroupElement** EPiRS; ///< stores the current Pi(R) * S for this node. Only usfull for the last node. GroupElement* PiMRS; ///< stores the current Pi(M * R) * S for this node. Only usefull for the last node. }; -- cgit v1.2.3-70-g09d2