blob: 233bc9503acf9b66897971e36b90196d0962e75a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "crypto_scalarmult_curve25519.h"
#include "crypto_box.h"
#include "randombytes.h"
int crypto_box_keypair(
unsigned char *pk,
unsigned char *sk
)
{
randombytes(sk,32);
return crypto_scalarmult_curve25519_base(pk,sk);
}
|