aboutsummaryrefslogtreecommitdiff
path: root/libcmix/cmix.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2018-02-04 12:47:09 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2018-02-04 12:47:09 +0100
commit21474893efe0ab38461c3d08727c7c778caa9323 (patch)
tree8d48ec3353c84155dcf7daf67d8ade1dd1fd480d /libcmix/cmix.h
parent126021b3766e6fb33333b7939d78dadd1c632eb4 (diff)
downloadcmix-21474893efe0ab38461c3d08727c7c778caa9323.tar.gz
cmix-21474893efe0ab38461c3d08727c7c778caa9323.tar.bz2
cmix-21474893efe0ab38461c3d08727c7c778caa9323.zip
Both algorithms are now batchable.
Diffstat (limited to 'libcmix/cmix.h')
-rw-r--r--libcmix/cmix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcmix/cmix.h b/libcmix/cmix.h
index f060762..d35b23f 100644
--- a/libcmix/cmix.h
+++ b/libcmix/cmix.h
@@ -52,7 +52,7 @@ struct CMixContext {
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.
+ GroupElement** PiMRS; ///< stores the current Pi(M * R) * S for this node. Only usefull for the last node.
};
/*!
@@ -60,7 +60,7 @@ struct CMixContext {
* \param api The cryptop api to initialize this CMixContext for.
* \return The created and Initialized CMixContext;
*/
-struct CMixContext initialize_cmix_context(struct Api api);
+struct CMixContext initialize_cmix_context(struct Api api, unsigned int nr_mixes);
/*!
* \brief deinitialize deallocates all the context resources and deinitializes the crypto api.