From 5b09876c953347a9fc381dd1e68e4c9f3b08d7f0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 27 Apr 2013 09:03:31 -0700 Subject: [PATCH] DRY --- .../sodium/crypto_scalarmult_curve25519.h.in | 30 +++++++------------ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in b/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in index 7f655ae2..6d9c035e 100644 --- a/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in +++ b/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in @@ -14,28 +14,18 @@ extern "C" { #endif +SODIUM_EXPORT +int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *); + +SODIUM_EXPORT +int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *); + #ifdef SODIUM_HAVE_TI_MODE - -SODIUM_EXPORT -int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *); - -SODIUM_EXPORT -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 - +# define crypto_scalarmult_curve25519_donna_c64 crypto_scalarmult_curve25519 +# define crypto_scalarmult_curve25519_donna_c64_base crypto_scalarmult_curve25519_base #else - -SODIUM_EXPORT -int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *); - -SODIUM_EXPORT -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 - +# define crypto_scalarmult_curve25519_ref crypto_scalarmult_curve25519 +# define crypto_scalarmult_curve25519_ref_base crypto_scalarmult_curve25519_base #endif #ifdef __cplusplus