5 * THREAD SAFETY: crypto_sign_keypair() is thread-safe,
6 * provided that you called sodium_init() once before using any
7 * other libsodium function.
8 * Other functions, including crypto_sign_seed_keypair() are always thread-safe.
13 #include "crypto_sign_ed25519.h"
20 #define crypto_sign_BYTES crypto_sign_ed25519_BYTES
22 size_t crypto_sign_bytes(void);
24 #define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
26 size_t crypto_sign_publickeybytes(void);
28 #define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
30 size_t crypto_sign_secretkeybytes(void);
32 #define crypto_sign_PRIMITIVE "ed25519"
34 const char *crypto_sign_primitive(void);
37 int crypto_sign_seed_keypair(unsigned char *pk
, unsigned char *sk
,
38 const unsigned char *seed
);
41 int crypto_sign_keypair(unsigned char *pk
, unsigned char *sk
);
44 int crypto_sign(unsigned char *sm
, unsigned long long *smlen
,
45 const unsigned char *m
, unsigned long long mlen
,
46 const unsigned char *sk
);
49 int crypto_sign_open(unsigned char *m
, unsigned long long *mlen
,
50 const unsigned char *sm
, unsigned long long smlen
,
51 const unsigned char *pk
);