1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Remaining changes to export primitives, not implementations.

This commit is contained in:
Frank Denis 2013-04-22 17:22:40 -07:00
parent 6e3e997faa
commit 1b0328610f

View File

@ -14,17 +14,17 @@ extern "C" {
#ifdef SODIUM_HAVE_TI_MODE
extern int crypto_scalarmult_curve25519_donna_c64(unsigned char *,const unsigned char *,const unsigned char *);
extern int crypto_scalarmult_curve25519_donna_c64_base(unsigned char *,const unsigned char *);
#define crypto_scalarmult_curve25519 crypto_scalarmult_curve25519_donna_c64
#define crypto_scalarmult_curve25519_base crypto_scalarmult_curve25519_donna_c64_base
extern int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *);
extern int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *);
#define crypto_scalarmult_curve25519_donna_c64 crypto_scalarmult_curve25519
#define crypto_scalarmult_curve25519_donna_c64_base crypto_scalarmult_curve25519_base
#else
extern int crypto_scalarmult_curve25519_ref(unsigned char *,const unsigned char *,const unsigned char *);
extern int crypto_scalarmult_curve25519_ref_base(unsigned char *,const unsigned char *);
#define crypto_scalarmult_curve25519 crypto_scalarmult_curve25519_ref
#define crypto_scalarmult_curve25519_base crypto_scalarmult_curve25519_ref_base
extern int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *);
extern int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *);
#define crypto_scalarmult_curve25519_ref crypto_scalarmult_curve25519
#define crypto_scalarmult_curve25519_ref_base crypto_scalarmult_curve25519_base
#endif
@ -32,5 +32,4 @@ extern int crypto_scalarmult_curve25519_ref_base(unsigned char *,const unsigned
}
#endif
#endif