From 623dffe2c054d1639dbf9c8f21ddfb088c7950fb Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sat, 11 Feb 2017 14:48:52 +0100 Subject: Working Ed25519 Implementation of libcmix. --- libcmix/cmix.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'libcmix/cmix.h') diff --git a/libcmix/cmix.h b/libcmix/cmix.h index 5c6a4c1..54df573 100644 --- a/libcmix/cmix.h +++ b/libcmix/cmix.h @@ -206,10 +206,17 @@ 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. @@ -321,6 +328,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. -- cgit v1.2.3-70-g09d2