From 1b0328610fc25ae6c0241ce8417d53a780eab0b8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 22 Apr 2013 17:22:40 -0700 Subject: [PATCH] Remaining changes to export primitives, not implementations. --- .../sodium/crypto_scalarmult_curve25519.h.in | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in b/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in index f506b02f..cb263ab1 100644 --- a/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in +++ b/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in @@ -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