aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/api.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-12 13:48:30 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-12 13:48:30 +0100
commitf93d52bbd0053574fb35d72b85c4b299dc1f3ee5 (patch)
tree4a2120a162ce9161d70074fd9ffa3ed21d80a40e /libcmix-crypto/api.h
parent8ff9babe2da4a2efc8529e800a6093fbd0327286 (diff)
downloadcmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.tar.gz
cmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.tar.bz2
cmix-f93d52bbd0053574fb35d72b85c4b299dc1f3ee5.zip
Fixes decryption share calculation, adds lots of debugging statements.
Diffstat (limited to 'libcmix-crypto/api.h')
-rw-r--r--libcmix-crypto/api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcmix-crypto/api.h b/libcmix-crypto/api.h
index addf9e3..98c81a1 100644
--- a/libcmix-crypto/api.h
+++ b/libcmix-crypto/api.h
@@ -98,6 +98,11 @@ typedef void (*Encrypter)(GroupElement*, GroupElement*, GroupElement, GroupEleme
/*!
*
*/
+typedef GroupElement (*Inverter)(GroupElement);
+
+/*!
+ *
+ */
typedef GroupElement (*DecryptionShareGetter)(GroupElement, GroupElement);
/*!
@@ -120,6 +125,7 @@ struct Api {
SharedKeyDeriver derive_shared_key; ///< Pointer to shared key derivation function
SharedKeyDeleter free_shared_key; ///< Pointer to shared key deleter function
Encrypter encrypt; ///< encrypt value with key;
+ Inverter invert; ///< Invert the group element;
Deinitializer deinitialize; ///< Function that will deinitialize the crypto library.
};