crypto_box_curve25519xsalsa20poly1305.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef crypto_box_curve25519xsalsa20poly1305_H
  2. #define crypto_box_curve25519xsalsa20poly1305_H
  3. #define crypto_box_curve25519xsalsa20poly1305_ref_PUBLICKEYBYTES 32
  4. #define crypto_box_curve25519xsalsa20poly1305_ref_SECRETKEYBYTES 32
  5. #define crypto_box_curve25519xsalsa20poly1305_ref_BEFORENMBYTES 32
  6. #define crypto_box_curve25519xsalsa20poly1305_ref_NONCEBYTES 24
  7. #define crypto_box_curve25519xsalsa20poly1305_ref_ZEROBYTES 32
  8. #define crypto_box_curve25519xsalsa20poly1305_ref_BOXZEROBYTES 16
  9. #ifdef __cplusplus
  10. #include <string>
  11. extern std::string crypto_box_curve25519xsalsa20poly1305_ref(const std::string &,const std::string &,const std::string &,const std::string &);
  12. extern std::string crypto_box_curve25519xsalsa20poly1305_ref_open(const std::string &,const std::string &,const std::string &,const std::string &);
  13. extern std::string crypto_box_curve25519xsalsa20poly1305_ref_keypair(std::string *);
  14. extern "C" {
  15. #endif
  16. extern int crypto_box_curve25519xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
  17. extern int crypto_box_curve25519xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
  18. extern int crypto_box_curve25519xsalsa20poly1305_ref_keypair(unsigned char *,unsigned char *);
  19. extern int crypto_box_curve25519xsalsa20poly1305_ref_beforenm(unsigned char *,const unsigned char *,const unsigned char *);
  20. extern int crypto_box_curve25519xsalsa20poly1305_ref_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  21. extern int crypto_box_curve25519xsalsa20poly1305_ref_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #define crypto_box_curve25519xsalsa20poly1305 crypto_box_curve25519xsalsa20poly1305_ref
  26. #define crypto_box_curve25519xsalsa20poly1305_open crypto_box_curve25519xsalsa20poly1305_ref_open
  27. #define crypto_box_curve25519xsalsa20poly1305_keypair crypto_box_curve25519xsalsa20poly1305_ref_keypair
  28. #define crypto_box_curve25519xsalsa20poly1305_beforenm crypto_box_curve25519xsalsa20poly1305_ref_beforenm
  29. #define crypto_box_curve25519xsalsa20poly1305_afternm crypto_box_curve25519xsalsa20poly1305_ref_afternm
  30. #define crypto_box_curve25519xsalsa20poly1305_open_afternm crypto_box_curve25519xsalsa20poly1305_ref_open_afternm
  31. #define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_ref_PUBLICKEYBYTES
  32. #define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES crypto_box_curve25519xsalsa20poly1305_ref_SECRETKEYBYTES
  33. #define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES crypto_box_curve25519xsalsa20poly1305_ref_BEFORENMBYTES
  34. #define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_ref_NONCEBYTES
  35. #define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ref_ZEROBYTES
  36. #define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES crypto_box_curve25519xsalsa20poly1305_ref_BOXZEROBYTES
  37. #define crypto_box_curve25519xsalsa20poly1305_IMPLEMENTATION "crypto_box/curve25519xsalsa20poly1305/ref"
  38. #ifndef crypto_box_curve25519xsalsa20poly1305_ref_VERSION
  39. #define crypto_box_curve25519xsalsa20poly1305_ref_VERSION "-"
  40. #endif
  41. #define crypto_box_curve25519xsalsa20poly1305_VERSION crypto_box_curve25519xsalsa20poly1305_ref_VERSION
  42. #endif