libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_sign_ed25519.h
blobc572c6a7fb8db5ae015c76560c05133732d07212
1 #ifndef crypto_sign_ed25519_H
2 #define crypto_sign_ed25519_H
4 #include <stddef.h>
5 #include "export.h"
7 #define crypto_sign_ed25519_SECRETKEYBYTES 64U
8 #define crypto_sign_ed25519_PUBLICKEYBYTES 32U
9 #define crypto_sign_ed25519_BYTES 64U
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 SODIUM_EXPORT
16 size_t crypto_sign_ed25519_bytes(void);
18 SODIUM_EXPORT
19 size_t crypto_sign_ed25519_publickeybytes(void);
21 SODIUM_EXPORT
22 size_t crypto_sign_ed25519_secretkeybytes(void);
24 SODIUM_EXPORT
25 const char * crypto_sign_ed25519_primitive(void);
27 SODIUM_EXPORT
28 int crypto_sign_ed25519(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
30 SODIUM_EXPORT
31 int crypto_sign_ed25519_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
33 SODIUM_EXPORT
34 int crypto_sign_ed25519_keypair(unsigned char *,unsigned char *);
36 SODIUM_EXPORT
37 int crypto_sign_ed25519_seed_keypair(unsigned char *,unsigned char *,const unsigned char *);
39 #ifdef __cplusplus
41 #endif
43 #define crypto_sign_ed25519_ref10 crypto_sign_ed25519
44 #define crypto_sign_ed25519_ref10_open crypto_sign_ed25519_open
45 #define crypto_sign_ed25519_ref10_keypair crypto_sign_ed25519_keypair
46 #define crypto_sign_ed25519_ref10_seed_keypair crypto_sign_ed25519_seed_keypair
48 #endif