diff options
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 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. }; |
