From 74cea534fd189a2db423ae60997447e66265922b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 27 Nov 2016 10:08:19 +0100 Subject: Implements message delivery. Adds a minimum number of messages per mix. Embeds the destination in the message. Clients now send messages to themselves. --- libcmix-crypto/api.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libcmix-crypto/api.h') diff --git a/libcmix-crypto/api.h b/libcmix-crypto/api.h index caf97b6..0fa4916 100644 --- a/libcmix-crypto/api.h +++ b/libcmix-crypto/api.h @@ -65,6 +65,11 @@ typedef GroupElement(*ArrayToElement)(char const*, size_t size, bool); */ typedef void(*PubKeyHashGetter)(char** buffer, size_t* len, GroupElement const pub); +/*! + * + */ +typedef size_t(*PubKeyHashLengthGetter)(); + /*! * \brief PublicShareAdder typedef */ @@ -124,8 +129,9 @@ struct Api { KeyPairDeleter free_keypair; ///< Pointer to keypair deletor function ElementToArray element_to_array; ///< Get the array representation of a public key BufferDeleter free_buffer; ///< frees library allocated buffers. - ArrayToElement array_to_element; ///< The the GroupElement representation of this array; + ArrayToElement array_to_element; ///< The the GroupElement representation of this array. PubKeyHashGetter get_pub_key_hash; ///< Get the hash of the public key. + PubKeyHashLengthGetter get_pub_key_hash_length; ///< Get the length of the pubkey hash. GroupElementGetter get_group_element; ///< get group element GroupElementArraySizeGetter get_group_element_array_size; ///< Return the size required to store a groupelement in an array; GroupElementDeleter free_group_element; ///< frees a base type of the cryptolibrary. -- cgit v1.2.3-70-g09d2