diff options
Diffstat (limited to 'nacl/crypto_scalarmult/curve25519/ref/base.c')
-rw-r--r-- | nacl/crypto_scalarmult/curve25519/ref/base.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nacl/crypto_scalarmult/curve25519/ref/base.c b/nacl/crypto_scalarmult/curve25519/ref/base.c new file mode 100644 index 00000000..ac2d7eb4 --- /dev/null +++ b/nacl/crypto_scalarmult/curve25519/ref/base.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | version 20081011 | ||
3 | Matthew Dempsky | ||
4 | Public domain. | ||
5 | Derived from public domain code by D. J. Bernstein. | ||
6 | */ | ||
7 | |||
8 | #include "crypto_scalarmult.h" | ||
9 | |||
10 | const unsigned char base[32] = {9}; | ||
11 | |||
12 | int crypto_scalarmult_base(unsigned char *q, | ||
13 | const unsigned char *n) | ||
14 | { | ||
15 | return crypto_scalarmult(q,n,base); | ||
16 | } | ||