aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/api.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-27 10:08:19 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-27 10:08:19 +0100
commit74cea534fd189a2db423ae60997447e66265922b (patch)
treedecc06fa5da1f3f42612d527462d22ee487bf2db /libcmix-crypto/api.h
parentfa7a48172a3c9d9c2f96d6f9c05d80f497bc304d (diff)
downloadcmix-74cea534fd189a2db423ae60997447e66265922b.tar.gz
cmix-74cea534fd189a2db423ae60997447e66265922b.tar.bz2
cmix-74cea534fd189a2db423ae60997447e66265922b.zip
Implements message delivery.
Adds a minimum number of messages per mix. Embeds the destination in the message. Clients now send messages to themselves.
Diffstat (limited to 'libcmix-crypto/api.h')
-rw-r--r--libcmix-crypto/api.h8
1 files changed, 7 insertions, 1 deletions
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
@@ -66,6 +66,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
*/
typedef void(*PublicShareAdder)(GroupElement*, char const*, size_t, GroupElement);
@@ -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.