From 25953b350b157744dd32dd364c5eb276c3172dc6 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 3 Dec 2015 12:18:21 +0000 Subject: Use header files where possible This fixes an incorrect re-declaration of ed25519_sign. Implement header files for some of the other library bits so that we don't need to declare functions in crypto.cpp. --- lib/ed25519_additions.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/ed25519_additions.h (limited to 'lib/ed25519_additions.h') diff --git a/lib/ed25519_additions.h b/lib/ed25519_additions.h new file mode 100644 index 0000000..e5f93a1 --- /dev/null +++ b/lib/ed25519_additions.h @@ -0,0 +1,24 @@ +#ifndef ED25519_ADDITIONS_H +#define ED25519_ADDITIONS_H + +#ifdef __cplusplus +extern "C" { +#endif + +void convert_curve25519_to_ed25519( + unsigned char * public_key, + unsigned char * signature); + +void convert_ed25519_to_curve25519( + unsigned char const * public_key, + unsigned char * signature); + +void ed25519_keypair( + unsigned char * private_key, + unsigned char * public_key); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3