ed25519-keccak.h 680 B

123456789101112131415161718192021222324252627
  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(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS);
  11. void ed25519_sign_keccak(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, ed25519_signature RS);
  12. int ed25519_scalarmult_keccak(ed25519_public_key res, const ed25519_secret_key sk, const ed25519_public_key pk);
  13. #if defined(__cplusplus)
  14. }
  15. #endif
  16. #endif // ED25519_KECCAK_H
  17. #endif // USE_KECCAK