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
Changes to update Tomato RAF.
[tomato.git]
/
release
/
src
/
router
/
dnscrypt
/
src
/
libnacl
/
crypto_box
/
curve25519xsalsa20poly1305
/
ref
/
keypair.c
blob
233bc9503acf9b66897971e36b90196d0962e75a
1
#include
"crypto_scalarmult_curve25519.h"
2
#include
"crypto_box.h"
3
#include
"randombytes.h"
4
5
int
crypto_box_keypair
(
6
unsigned char
*
pk
,
7
unsigned char
*
sk
8
)
9
{
10
randombytes
(
sk
,
32
);
11
return
crypto_scalarmult_curve25519_base
(
pk
,
sk
);
12
}