1 #ifndef ED25519_H 2 #define ED25519_H 3 4 #include <stdlib.h> 5 6 #if defined(__cplusplus) 7 extern "C" { 8 #endif 9 10 typedef unsigned char ed25519_signature[64]; 11 typedef unsigned char ed25519_public_key[32]; 12 typedef unsigned char ed25519_secret_key[32]; 13 14 typedef unsigned char curved25519_key[32]; 15 16 void cryptonite_ed25519_publickey(const ed25519_secret_key sk, ed25519_public_key pk); 17 int cryptonite_ed25519_sign_open(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS); 18 void cryptonite_ed25519_sign(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, const ed25519_public_key pk, ed25519_signature RS); 19 20 //int cryptonite_ed25519_sign_open_batch(const unsigned char **m, size_t *mlen, const unsigned char **pk, const unsigned char **RS, size_t num, int *valid); 21 22 //void ed25519_randombytes_unsafe(void *out, size_t count); 23 24 //void curved25519_scalarmult_basepoint(curved25519_key pk, const curved25519_key e); 25 26 #if defined(__cplusplus) 27 } 28 #endif 29 30 #endif // ED25519_H 31