From f93d52bbd0053574fb35d72b85c4b299dc1f3ee5 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sat, 12 Nov 2016 13:48:30 +0100 Subject: Fixes decryption share calculation, adds lots of debugging statements. --- 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 addf9e3..98c81a1 100644 --- a/libcmix-crypto/api.h +++ b/libcmix-crypto/api.h @@ -95,6 +95,11 @@ typedef void(*GroupElementDeleter)(GroupElement); */ typedef void (*Encrypter)(GroupElement*, GroupElement*, GroupElement, GroupElement); +/*! + * + */ +typedef GroupElement (*Inverter)(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. }; -- cgit v1.2.3-70-g09d2