scrypt.h 370 B

123456789101112131415161718
  1. #ifndef SCRYPT_H
  2. #define SCRYPT_H
  3. #include <stdint.h>
  4. #include "miner.h"
  5. #ifdef USE_SCRYPT
  6. extern void scrypt_hash_data(unsigned char *out_hash, const unsigned char *data);
  7. extern void scrypt_regenhash(struct work *work);
  8. #else /* USE_SCRYPT */
  9. static inline void scrypt_regenhash(__maybe_unused struct work *work)
  10. {
  11. }
  12. #endif /* USE_SCRYPT */
  13. #endif /* SCRYPT_H */