ed25519_keccak.h 727 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "../options.h"
  2. #if USE_KECCAK
  3. #ifndef ED25519_KECCAK_H
  4. #define ED25519_KECCAK_H
  5. #include "ed25519.h"
  6. #if defined(__cplusplus)
  7. extern "C" {
  8. #endif
  9. void ed25519_publickey_keccak(const ed25519_secret_key sk, ed25519_public_key pk);
  10. int ed25519_sign_open_keccak(
  11. const unsigned char* m,
  12. size_t mlen,
  13. const ed25519_public_key pk,
  14. const ed25519_signature RS);
  15. void ed25519_sign_keccak(
  16. const unsigned char* m,
  17. size_t mlen,
  18. const ed25519_secret_key sk,
  19. ed25519_signature RS);
  20. int ed25519_scalarmult_keccak(
  21. ed25519_public_key res,
  22. const ed25519_secret_key sk,
  23. const ed25519_public_key pk);
  24. #if defined(__cplusplus)
  25. }
  26. #endif
  27. #endif // ED25519_KECCAK_H
  28. #endif // USE_KECCAK