23 #include "libssh/priv.h" 32 #define ED25519_PK_LEN 32 33 #define ED25519_SK_LEN 64 34 #define ED25519_SIG_LEN 64 36 typedef uint8_t ed25519_pubkey[ED25519_PK_LEN];
37 typedef uint8_t ed25519_privkey[ED25519_SK_LEN];
38 typedef uint8_t ed25519_signature[ED25519_SIG_LEN];
46 int crypto_sign_ed25519_keypair(ed25519_pubkey pk, ed25519_privkey sk);
58 int crypto_sign_ed25519(
59 unsigned char *sm, uint64_t *smlen,
60 const unsigned char *m, uint64_t mlen,
61 const ed25519_privkey sk);
73 int crypto_sign_ed25519_open(
74 unsigned char *m, uint64_t *mlen,
75 const unsigned char *sm, uint64_t smlen,
76 const ed25519_pubkey pk);