repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
6f58df2efb54d4f12622213003ddd647479f05bb
1
/*
2
version 20081011
3
Matthew Dempsky
4
Public domain.
5
Derived from public domain code by D. J. Bernstein.
6
*/
7
8
#include
"api.h"
9
10
#ifndef HAVE_TI_MODE
11
12
const unsigned char
base
[
32
] = {
9
};
13
14
int
crypto_scalarmult_base
(
unsigned char
*
q
,
15
const unsigned char
*
n
)
16
{
17
return
crypto_scalarmult
(
q
,
n
,
base
);
18
}
19
20
#endif