crypto_sign_ed25519.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef crypto_sign_ed25519_H
  2. #define crypto_sign_ed25519_H
  3. #define crypto_sign_ed25519_ref10_SECRETKEYBYTES 64
  4. #define crypto_sign_ed25519_ref10_PUBLICKEYBYTES 32
  5. #define crypto_sign_ed25519_ref10_BYTES 64
  6. #ifdef __cplusplus
  7. #include <string>
  8. extern std::string crypto_sign_ed25519_ref10(const std::string &,const std::string &);
  9. extern std::string crypto_sign_ed25519_ref10_open(const std::string &,const std::string &);
  10. extern std::string crypto_sign_ed25519_ref10_keypair(std::string *);
  11. extern "C" {
  12. #endif
  13. extern int crypto_sign_ed25519_ref10(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
  14. extern int crypto_sign_ed25519_ref10_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
  15. extern int crypto_sign_ed25519_ref10_keypair(unsigned char *,unsigned char *);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #define crypto_sign_ed25519 crypto_sign_ed25519_ref10
  20. #define crypto_sign_ed25519 crypto_sign_ed25519_ref10
  21. #define crypto_sign_ed25519_open crypto_sign_ed25519_ref10_open
  22. #define crypto_sign_ed25519_keypair crypto_sign_ed25519_ref10_keypair
  23. #define crypto_sign_ed25519_BYTES crypto_sign_ed25519_ref10_BYTES
  24. #define crypto_sign_ed25519_PUBLICKEYBYTES crypto_sign_ed25519_ref10_PUBLICKEYBYTES
  25. #define crypto_sign_ed25519_SECRETKEYBYTES crypto_sign_ed25519_ref10_SECRETKEYBYTES
  26. #define crypto_sign_ed25519_IMPLEMENTATION "crypto_sign/ed25519/ref10"
  27. #ifndef crypto_sign_ed25519_ref10_VERSION
  28. #define crypto_sign_ed25519_ref10_VERSION "-"
  29. #endif
  30. #define crypto_sign_ed25519_VERSION crypto_sign_ed25519_ref10_VERSION
  31. #endif