libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_scalarmult / curve25519 / ref / base_curve25519_ref.c
blob6f58df2efb54d4f12622213003ddd647479f05bb
1 /*
2 version 20081011
3 Matthew Dempsky
4 Public domain.
5 Derived from public domain code by D. J. Bernstein.
6 */
8 #include "api.h"
10 #ifndef HAVE_TI_MODE
12 const unsigned char base[32] = {9};
14 int crypto_scalarmult_base(unsigned char *q,
15 const unsigned char *n)
17 return crypto_scalarmult(q,n,base);
20 #endif