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 # ifdef __GNUC__
20 #  pragma GCC diagnostic ignored "-Wlong-long"
21 # endif
22 extern "C" {
23 #endif
24 
25 #define crypto_sign_edwards25519sha512batch_BYTES 64U
26 #define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U
27 #define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U)
28 #define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX - crypto_sign_edwards25519sha512batch_BYTES)
29 
30 SODIUM_EXPORT
31 int crypto_sign_edwards25519sha512batch(unsigned char *sm,
32                                         unsigned long long *smlen_p,
33                                         const unsigned char *m,
34                                         unsigned long long mlen,
35                                         const unsigned char *sk)
36        __attribute__ ((deprecated));
37 
38 SODIUM_EXPORT
39 int crypto_sign_edwards25519sha512batch_open(unsigned char *m,
40                                              unsigned long long *mlen_p,
41                                              const unsigned char *sm,
42                                              unsigned long long smlen,
43                                              const unsigned char *pk)
44        __attribute__ ((deprecated));
45 
46 SODIUM_EXPORT
47 int crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
48                                                 unsigned char *sk)
49        __attribute__ ((deprecated));
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif
56