23#include "libssh/priv.h"
36#define ED25519_PK_LEN 32
42#define ED25519_SK_LEN 64
48#define ED25519_SIG_LEN 64
55typedef uint8_t ed25519_pubkey[ED25519_PK_LEN];
61typedef uint8_t ed25519_privkey[ED25519_SK_LEN];
67typedef uint8_t ed25519_signature[ED25519_SIG_LEN];
79int crypto_sign_ed25519_keypair(ed25519_pubkey pk, ed25519_privkey sk);
91int crypto_sign_ed25519(
92 unsigned char *sm, uint64_t *smlen,
93 const unsigned char *m, uint64_t mlen,
94 const ed25519_privkey sk);
106int crypto_sign_ed25519_open(
107 unsigned char *m, uint64_t *mlen,
108 const unsigned char *sm, uint64_t smlen,
109 const ed25519_pubkey pk);