Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/sodium/crypto_sign_edwards25519sha512batch.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #ifndef crypto_sign_edwards25519sha512batch_H
0002 #define crypto_sign_edwards25519sha512batch_H
0003 
0004 /*
0005  * WARNING: This construction was a prototype, which should not be used
0006  * any more in new projects.
0007  *
0008  * crypto_sign_edwards25519sha512batch is provided for applications
0009  * initially built with NaCl, but as recommended by the author of this
0010  * construction, new applications should use ed25519 instead.
0011  *
0012  * In Sodium, you should use the high-level crypto_sign_*() functions instead.
0013  */
0014 
0015 #include <stddef.h>
0016 #include "export.h"
0017 
0018 #ifdef __cplusplus
0019 # ifdef __GNUC__
0020 #  pragma GCC diagnostic ignored "-Wlong-long"
0021 # endif
0022 extern "C" {
0023 #endif
0024 
0025 #define crypto_sign_edwards25519sha512batch_BYTES 64U
0026 #define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U
0027 #define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U)
0028 #define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX - crypto_sign_edwards25519sha512batch_BYTES)
0029 
0030 SODIUM_EXPORT
0031 int crypto_sign_edwards25519sha512batch(unsigned char *sm,
0032                                         unsigned long long *smlen_p,
0033                                         const unsigned char *m,
0034                                         unsigned long long mlen,
0035                                         const unsigned char *sk)
0036             __attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5)));
0037 
0038 SODIUM_EXPORT
0039 int crypto_sign_edwards25519sha512batch_open(unsigned char *m,
0040                                              unsigned long long *mlen_p,
0041                                              const unsigned char *sm,
0042                                              unsigned long long smlen,
0043                                              const unsigned char *pk)
0044             __attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5)));
0045 
0046 SODIUM_EXPORT
0047 int crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
0048                                                 unsigned char *sk)
0049             __attribute__ ((deprecated)) __attribute__ ((nonnull));
0050 
0051 #ifdef __cplusplus
0052 }
0053 #endif
0054 
0055 #endif