29#include <nacl/crypto_scalarmult_curve25519.h>
30#define CURVE25519_PUBKEY_SIZE crypto_scalarmult_curve25519_BYTES
31#define CURVE25519_PRIVKEY_SIZE crypto_scalarmult_curve25519_SCALARBYTES
32#define crypto_scalarmult_base crypto_scalarmult_curve25519_base
33#define crypto_scalarmult crypto_scalarmult_curve25519
40#define CURVE25519_PUBKEY_SIZE 32
41#define CURVE25519_PRIVKEY_SIZE 32
42int crypto_scalarmult_base(
unsigned char *q,
const unsigned char *n);
43int crypto_scalarmult(
unsigned char *q,
const unsigned char *n,
const unsigned char *p);
47#define HAVE_CURVE25519 1
50typedef unsigned char ssh_curve25519_pubkey[CURVE25519_PUBKEY_SIZE];
51typedef unsigned char ssh_curve25519_privkey[CURVE25519_PRIVKEY_SIZE];
54int ssh_client_curve25519_init(ssh_session session);
55void ssh_client_curve25519_remove_callbacks(ssh_session session);
58void ssh_server_curve25519_init(ssh_session session);