diff options
Diffstat (limited to 'libcmix/cmix.h')
| -rw-r--r-- | libcmix/cmix.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libcmix/cmix.h b/libcmix/cmix.h index 5c6a4c1..54df573 100644 --- a/libcmix/cmix.h +++ b/libcmix/cmix.h @@ -206,11 +206,18 @@ enum cmix_error generate_random_message(struct CMixContext* ctx, char* buffer); /*! * \brief get_group_element_array_size Get the minimum size required to store an array representation of a group element. * \param ctx The relevant context. - * \return A cmix_error + * \return The group element array size */ size_t get_group_element_array_size(struct CMixContext const* ctx); /*! + * \brief get_message_size How large a message can be. + * \param ctx The relevant context + * \return The message size + */ +size_t get_message_size(struct CMixContext const* ctx); + +/*! * \brief encrypt_r Encrypts r with the network key * \param ctx The relevant context. * \param random_buffer An array of buffers for storing the random component of the elgamal encryption. @@ -322,6 +329,15 @@ enum cmix_error decrypt_epirs(struct CMixContext const* ctx, char** out_buffer, enum cmix_error remove_pirs(struct CMixContext const* ctx, char** out_buffer, const char** pirs); /*! + * \brief element_to_message + * \param ctx + * \param buffer + * \param el + * \return + */ +enum cmix_error element_to_message(struct CMixContext const* ctx, unsigned char** buffer, char const* el); + +/*! * \brief split_message Splits a message in its destination and payload components. * \param ctx The relevant context. * \param dest_buffer pointer to a char* storage that will be initialized by this function. |
