libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_scalarmult_curve25519.h.in
blobe87657fff7015f20e3b61fdafaebfab81991c2c7
1 #ifndef crypto_scalarmult_curve25519_H
2 #define crypto_scalarmult_curve25519_H
4 #if @HAVE_TI_MODE_V@
5 # ifndef SODIUM_HAVE_TI_MODE
6 # define SODIUM_HAVE_TI_MODE
7 # endif
8 #endif
10 #include "export.h"
12 #define crypto_scalarmult_curve25519_BYTES 32
13 #define crypto_scalarmult_curve25519_SCALARBYTES 32
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 SODIUM_EXPORT
20 int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *);
22 SODIUM_EXPORT
23 int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *);
25 #ifdef SODIUM_HAVE_TI_MODE
26 # define crypto_scalarmult_curve25519_donna_c64 crypto_scalarmult_curve25519
27 # define crypto_scalarmult_curve25519_donna_c64_base crypto_scalarmult_curve25519_base
28 #else
29 # define crypto_scalarmult_curve25519_ref crypto_scalarmult_curve25519
30 # define crypto_scalarmult_curve25519_ref_base crypto_scalarmult_curve25519_base
31 #endif
33 #ifdef __cplusplus
35 #endif
37 #endif