aboutsummaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-13 21:01:14 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-13 21:01:14 +0200
commit557fbe2cc32f3ff6d8c2c0c8aa272f7b55f45618 (patch)
tree1804896d2e6d2ffb14936a6570b96c65e230143f /crypto.h
parent745dff3ac02a97d5686270fd142a31ad6e5badb2 (diff)
add first ZKP including test case
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto.h b/crypto.h
index 28bf4eb..0df73e4 100644
--- a/crypto.h
+++ b/crypto.h
@@ -25,10 +25,6 @@
#include <gcrypt.h>
#include <stdint.h>
-extern gcry_mpi_point_t ec_gen;
-extern gcry_ctx_t ec_ctx;
-
-
void brandt_crypto_init ();
@@ -57,5 +53,7 @@ void brandt_mpi_scan_unsigned (gcry_mpi_t *result, const void *data, size_t size
void brandt_ec_skey_create (gcry_mpi_t* skey);
void brandt_ec_pkey_compute (gcry_mpi_point_t* pkey, const gcry_mpi_t skey);
void brandt_ec_keypair_create (gcry_mpi_point_t* pkey, gcry_mpi_t* skey);
+void brandt_ec_keypair_create_base (gcry_mpi_point_t* pkey, gcry_mpi_t* skey, const gcry_mpi_point_t base);
+int brandt_ec_point_cmp (const gcry_mpi_point_t a, const gcry_mpi_point_t b);
#endif /* ifndef _BRANDT_CRYPTO_H */