From 81b38e86e4e073aa3aa590cbea39852972242a41 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Fri, 18 Nov 2016 12:40:47 +0100 Subject: Adds api call to convert public key to an (string) id --- libcmix-crypto/api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcmix-crypto/api.h') diff --git a/libcmix-crypto/api.h b/libcmix-crypto/api.h index 98c81a1..d52ab95 100644 --- a/libcmix-crypto/api.h +++ b/libcmix-crypto/api.h @@ -60,6 +60,11 @@ typedef void(*BufferDeleter)(void*); */ typedef GroupElement(*ArrayToElement)(char const*, size_t size, bool); +/*! + * + */ +typedef void(*PubKeyHashGetter)(char** buffer, size_t* len, GroupElement const pub); + /*! * \brief PublicShareAdder typedef */ @@ -115,6 +120,7 @@ struct Api { 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; + PubKeyHashGetter get_pub_key_hash; ///< Get the hash of the public key. 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