aboutsummaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-16 20:58:20 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-16 20:58:20 +0200
commitfe7b13889217f4268d87d3712cb9ffe265e6a4e2 (patch)
tree59a17a13bdd9f22281bb0a59d8056675814a0cfd /crypto.h
parent01c2b8d710ff5a526d1ae2ed2a7fafdec0b1f973 (diff)
some stuff
- finish BRANDT_destroy() - fix include mess related to platform.h and brandt_config.h - add first brandt.c testcase
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto.h b/crypto.h
index ebdcd61..9cb5405 100644
--- a/crypto.h
+++ b/crypto.h
@@ -26,7 +26,6 @@
#include <gcrypt.h>
#include <stdint.h>
-#include "platform.h"
#include <gnunet/gnunet_util_lib.h>
#include "internals.h"
@@ -42,6 +41,16 @@ struct ec_mpi {
unsigned char data[256 / 8];
};
+gcry_mpi_point_t *smc_init1 (uint16_t size1);
+gcry_mpi_point_t **smc_init2 (uint16_t size1, uint16_t size2);
+gcry_mpi_point_t ***smc_init3 (uint16_t size1, uint16_t size2, uint16_t size3);
+void smc_free1 (gcry_mpi_point_t *dst, uint16_t size1);
+void smc_free2 (gcry_mpi_point_t **dst, uint16_t size1, uint16_t size2);
+void smc_free3 (gcry_mpi_point_t ***dst,
+ uint16_t size1,
+ uint16_t size2,
+ uint16_t size3);
+
void ec_point_copy (gcry_mpi_point_t dst, const gcry_mpi_point_t src);
int ec_point_cmp (const gcry_mpi_point_t a, const gcry_mpi_point_t b);
void ec_skey_create (gcry_mpi_t skey);