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/curve25519-donna.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/curve25519-donna.h (limited to 'lib/curve25519-donna.h') diff --git a/lib/curve25519-donna.h b/lib/curve25519-donna.h new file mode 100644 index 0000000..3c53d4a --- /dev/null +++ b/lib/curve25519-donna.h @@ -0,0 +1,18 @@ +/* header file for the curve25519-donna implementation, because the + * authors of that project don't supply one. + */ +#ifndef CURVE25519_DONNA_H +#define CURVE25519_DONNA_H + +#ifdef __cplusplus +extern "C" { +#endif + +extern int curve25519_donna(unsigned char *output, const unsigned char *a, + const unsigned char *b); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3