crypto_secretbox_xsalsa20poly1305.h 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef crypto_secretbox_xsalsa20poly1305_H
  2. #define crypto_secretbox_xsalsa20poly1305_H
  3. #define crypto_secretbox_xsalsa20poly1305_ref_KEYBYTES 32
  4. #define crypto_secretbox_xsalsa20poly1305_ref_NONCEBYTES 24
  5. #define crypto_secretbox_xsalsa20poly1305_ref_ZEROBYTES 32
  6. #define crypto_secretbox_xsalsa20poly1305_ref_BOXZEROBYTES 16
  7. #ifdef __cplusplus
  8. #include <string>
  9. extern std::string crypto_secretbox_xsalsa20poly1305_ref(const std::string &,const std::string &,const std::string &);
  10. extern std::string crypto_secretbox_xsalsa20poly1305_ref_open(const std::string &,const std::string &,const std::string &);
  11. extern "C" {
  12. #endif
  13. extern int crypto_secretbox_xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  14. extern int crypto_secretbox_xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #define crypto_secretbox_xsalsa20poly1305 crypto_secretbox_xsalsa20poly1305_ref
  19. #define crypto_secretbox_xsalsa20poly1305_open crypto_secretbox_xsalsa20poly1305_ref_open
  20. #define crypto_secretbox_xsalsa20poly1305_KEYBYTES crypto_secretbox_xsalsa20poly1305_ref_KEYBYTES
  21. #define crypto_secretbox_xsalsa20poly1305_NONCEBYTES crypto_secretbox_xsalsa20poly1305_ref_NONCEBYTES
  22. #define crypto_secretbox_xsalsa20poly1305_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ref_ZEROBYTES
  23. #define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_ref_BOXZEROBYTES
  24. #define crypto_secretbox_xsalsa20poly1305_IMPLEMENTATION "crypto_secretbox/xsalsa20poly1305/ref"
  25. #ifndef crypto_secretbox_xsalsa20poly1305_ref_VERSION
  26. #define crypto_secretbox_xsalsa20poly1305_ref_VERSION "-"
  27. #endif
  28. #define crypto_secretbox_xsalsa20poly1305_VERSION crypto_secretbox_xsalsa20poly1305_ref_VERSION
  29. #endif