libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_scalarmult / crypto_scalarmult.c
blob25d7397fb9cb0e59b70a88917bdb57f3c98a3dd8
2 #include "crypto_scalarmult.h"
4 size_t
5 crypto_scalarmult_bytes(void)
7 return crypto_scalarmult_BYTES;
10 size_t
11 crypto_scalarmult_scalarbytes(void)
13 return crypto_scalarmult_SCALARBYTES;
16 const char *
17 crypto_scalarmult_primitive(void)
19 return crypto_scalarmult_PRIMITIVE;
22 int
23 crypto_scalarmult_base(unsigned char *q, const unsigned char *n)
25 return crypto_scalarmult_curve25519_base(q, n);
28 int
29 crypto_scalarmult(unsigned char *q, const unsigned char *n,
30 const unsigned char *p)
32 return crypto_scalarmult_curve25519(q, n, p);