crypto_scalarmult.h 1.3 KB

12345678910111213141516171819202122232425262728
  1. #ifndef crypto_scalarmult_curve25519_H
  2. #define crypto_scalarmult_curve25519_H
  3. #define crypto_scalarmult_curve25519_donna_BYTES 32
  4. #define crypto_scalarmult_curve25519_donna_SCALARBYTES 32
  5. #ifdef __cplusplus
  6. #include <string>
  7. extern std::string crypto_scalarmult_curve25519_donna(const std::string &,const std::string &);
  8. extern std::string crypto_scalarmult_curve25519_donna_base(const std::string &);
  9. extern "C" {
  10. #endif
  11. extern int crypto_scalarmult_curve25519_donna(unsigned char *,const unsigned char *,const unsigned char *);
  12. extern int crypto_scalarmult_curve25519_donna_base(unsigned char *,const unsigned char *);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #define crypto_scalarmult_curve25519 crypto_scalarmult_curve25519_donna
  17. #define crypto_scalarmult_curve25519_base crypto_scalarmult_curve25519_donna_base
  18. #define crypto_scalarmult_curve25519_BYTES crypto_scalarmult_curve25519_donna_BYTES
  19. #define crypto_scalarmult_curve25519_SCALARBYTES crypto_scalarmult_curve25519_donna_SCALARBYTES
  20. #define crypto_scalarmult_curve25519_IMPLEMENTATION "crypto_scalarmult/curve25519/ref"
  21. #ifndef crypto_scalarmult_curve25519_donna_VERSION
  22. #define crypto_scalarmult_curve25519_donna_VERSION "-"
  23. #endif
  24. #define crypto_scalarmult_curve25519_VERSION crypto_scalarmult_curve25519_donna_VERSION
  25. #endif