diff options
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" |
