aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/api.h
diff options
context:
space:
mode:
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.