libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_box / curve25519xsalsa20poly1305 / ref / keypair_curve25519xsalsa20poly1305.c
blob69fb1cfc9d2834f96c6d283b172c28ae06e8f28d
1 #include "crypto_scalarmult_curve25519.h"
2 #include "api.h"
3 #include "randombytes.h"
5 int crypto_box_keypair(
6 unsigned char *pk,
7 unsigned char *sk
10 randombytes(sk,32);
11 return crypto_scalarmult_curve25519_base(pk,sk);