diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2017-12-23 17:49:59 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2017-12-23 17:49:59 +0100 |
| commit | 126021b3766e6fb33333b7939d78dadd1c632eb4 (patch) | |
| tree | 56ed7de471d2ad9cd85403cffc309379f922dc3f /libcmix/cmix.h | |
| parent | e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd (diff) | |
| download | cmix-126021b3766e6fb33333b7939d78dadd1c632eb4.tar.gz cmix-126021b3766e6fb33333b7939d78dadd1c632eb4.tar.bz2 cmix-126021b3766e6fb33333b7939d78dadd1c632eb4.zip | |
Preparing multiple mixes
Diffstat (limited to 'libcmix/cmix.h')
| -rw-r--r-- | libcmix/cmix.h | 11 |
1 files changed, 6 insertions, 5 deletions
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. }; |
