libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_scalarmult.h
blob3d59b3a20d2d161fbad791ec3f14a9353a5085c5
1 #ifndef crypto_scalarmult_H
2 #define crypto_scalarmult_H
4 #include <stddef.h>
6 #include "crypto_scalarmult_curve25519.h"
7 #include "export.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES
14 SODIUM_EXPORT
15 size_t crypto_scalarmult_bytes(void);
17 #define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES
18 SODIUM_EXPORT
19 size_t crypto_scalarmult_scalarbytes(void);
21 #define crypto_scalarmult_PRIMITIVE "curve25519"
22 SODIUM_EXPORT
23 const char *crypto_scalarmult_primitive(void);
25 SODIUM_EXPORT
26 int crypto_scalarmult_base(unsigned char *q, const unsigned char *n);
28 SODIUM_EXPORT
29 int crypto_scalarmult(unsigned char *q, const unsigned char *n,
30 const unsigned char *p);
32 #ifdef __cplusplus
34 #endif
36 #endif