crypto_sign_edwards25519sha512batch.h 2.1 KB

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