C++ compat

This commit is contained in:
Frank Denis 2015-11-04 19:19:20 +01:00
parent ae2bbc4ff9
commit 91fc9e298a
3 changed files with 24 additions and 0 deletions

View File

@ -8,6 +8,10 @@
#ifndef fe51_H
#define fe51_H
#ifdef __cplusplus
extern "C" {
#endif
#include "crypto_uint64.h"
#include "fe51_namespace.h"
@ -22,4 +26,8 @@ extern void fe51_mul(fe51 *, const fe51 *, const fe51 *);
extern void fe51_nsquare(fe51 *, const fe51 *, int);
extern void fe51_invert(fe51 *, const fe51 *);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,10 +1,18 @@
#ifndef ladder_H
#define ladder_H
#ifdef __cplusplus
extern "C" {
#endif
#include "fe.h"
#include "ladder_namespace.h"
extern void ladder(fe *, const unsigned char *);
#ifdef __cplusplus
}
#endif
#endif //ifndef ladder_H

View File

@ -1,10 +1,18 @@
#ifndef ladder_base_H
#define ladder_base_H
#ifdef __cplusplus
extern "C" {
#endif
#include "fe.h"
#include "ladder_base_namespace.h"
extern void ladder_base(fe *, const unsigned char *);
#ifdef __cplusplus
}
#endif
#endif //ifndef ladder_base_H