diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-16 21:38:43 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-16 21:38:43 +0200 |
| commit | c9082aa07394e15cd800bd5ad396c37a2334c98d (patch) | |
| tree | 2c14dbbf4faba3b7cc02469d26084486bf7114e5 /libcmix/cmix.h | |
| parent | 20139a86eddc062fdbaacad0d7d6fdbd999f2e18 (diff) | |
| download | cmix-c9082aa07394e15cd800bd5ad396c37a2334c98d.tar.gz cmix-c9082aa07394e15cd800bd5ad396c37a2334c98d.tar.bz2 cmix-c9082aa07394e15cd800bd5ad396c37a2334c98d.zip | |
made the code base more consistent and fixes some small TU issues.
Diffstat (limited to 'libcmix/cmix.h')
| -rw-r--r-- | libcmix/cmix.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libcmix/cmix.h b/libcmix/cmix.h index 96d578f..e0d9961 100644 --- a/libcmix/cmix.h +++ b/libcmix/cmix.h @@ -53,7 +53,15 @@ enum cmix_error get_message(char* message, struct CMixBuffer b, unsigned int ind */ enum cmix_error set_message(char const* message, struct CMixBuffer b, unsigned int index); -enum cmix_error calculate_shared_secret(struct Bignum* result, struct Bignum partial_shared, struct Bignum my_share, struct Bignum mod); +/*! + * \brief calculate_shared_key_part Calculates (partly) the shared key which is needed by all the nodes. + * \param result Storage for the result + * \param partial_shared The shared key so far. + * \param my_share My part to add to the key. + * \param mod The modulus of the group we are in. + * \return An error_code. + */ +enum cmix_error calculate_shared_key_part(struct Bignum* result, struct Bignum partial_shared, struct Bignum my_share, struct Bignum mod); #ifdef __cplusplus } // extern "C" |
