aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/api.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-18 12:47:35 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-18 12:47:35 +0100
commit6d55dcba54ceaccc9d90ea7c2f1746524a6e81e3 (patch)
tree264bcf206535d41cdfec7c0a659c861ea0bd5f31 /libcmix-crypto/api.h
parentd9e011488b9d7af4683e6640216e78871a06a5ec (diff)
downloadcmix-6d55dcba54ceaccc9d90ea7c2f1746524a6e81e3.tar.gz
cmix-6d55dcba54ceaccc9d90ea7c2f1746524a6e81e3.tar.bz2
cmix-6d55dcba54ceaccc9d90ea7c2f1746524a6e81e3.zip
Made permutation a responsibility of cmix in the precomputation phase.
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 d52ab95..caf97b6 100644
--- a/libcmix-crypto/api.h
+++ b/libcmix-crypto/api.h
@@ -108,6 +108,11 @@ typedef GroupElement (*Inverter)(GroupElement);
/*!
*
*/
+typedef unsigned int (*UniformIntGetter)(unsigned int);
+
+/*!
+ *
+ */
typedef GroupElement (*DecryptionShareGetter)(GroupElement, GroupElement);
/*!
@@ -132,6 +137,7 @@ struct Api {
SharedKeyDeleter free_shared_key; ///< Pointer to shared key deleter function
Encrypter encrypt; ///< encrypt value with key;
Inverter invert; ///< Invert the group element;
+ UniformIntGetter get_uniform_int; ///< Get a uniform int [0 .. argument);
Deinitializer deinitialize; ///< Function that will deinitialize the crypto library.
};