diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-18 12:40:47 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-18 12:44:11 +0100 |
| commit | 81b38e86e4e073aa3aa590cbea39852972242a41 (patch) | |
| tree | 929074d99422f094ee9d02a99ab244578d57b4ca /libcmix-crypto/api.h | |
| parent | 6ae607cc84b671810fca9c24b1c131ca12d922e7 (diff) | |
| download | cmix-81b38e86e4e073aa3aa590cbea39852972242a41.tar.gz cmix-81b38e86e4e073aa3aa590cbea39852972242a41.tar.bz2 cmix-81b38e86e4e073aa3aa590cbea39852972242a41.zip | |
Adds api call to convert public key to an (string) id
Diffstat (limited to 'libcmix-crypto/api.h')
| -rw-r--r-- | libcmix-crypto/api.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -61,6 +61,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 */ typedef void(*PublicShareAdder)(GroupElement*, char const*, size_t, GroupElement); @@ -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. |
