01b4f2ead88b96c6d86cc56e34c77669e6d3559b
[trex.git] /
1 #ifndef crypto_sign_edwards25519sha512batch_H
2 #define crypto_sign_edwards25519sha512batch_H
3
4 /*
5  * WARNING: This construction was a prototype, which should not be used
6  * any more in new projects.
7  * 
8  * crypto_sign_edwards25519sha512batch is provided for applications
9  * initially built with NaCl, but as recommended by the author of this
10  * construction, new applications should use ed25519 instead.
11  * 
12  * In Sodium, you should use the high-level crypto_sign_*() functions instead.
13  */
14
15 #include <stddef.h>
16 #include "export.h"
17
18 #ifdef __cplusplus
19 # if __GNUC__
20 #  pragma GCC diagnostic ignored "-Wlong-long"
21 # endif
22 extern "C" {
23 #endif
24
25 #define crypto_sign_edwards25519sha512batch_BYTES 64U
26 SODIUM_EXPORT
27 size_t crypto_sign_edwards25519sha512batch_bytes(void);
28
29 #define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U
30 SODIUM_EXPORT
31 size_t crypto_sign_edwards25519sha512batch_publickeybytes(void);
32
33 #define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U)
34 SODIUM_EXPORT
35 size_t crypto_sign_edwards25519sha512batch_secretkeybytes(void);
36
37 SODIUM_EXPORT
38 int crypto_sign_edwards25519sha512batch(unsigned char *sm,
39                                         unsigned long long *smlen_p,
40                                         const unsigned char *m,
41                                         unsigned long long mlen,
42                                         const unsigned char *sk);
43
44 SODIUM_EXPORT
45 int crypto_sign_edwards25519sha512batch_open(unsigned char *m,
46                                              unsigned long long *mlen_p,
47                                              const unsigned char *sm,
48                                              unsigned long long smlen,
49                                              const unsigned char *pk);
50
51 SODIUM_EXPORT
52 int crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
53                                                 unsigned char *sk);
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif