scrypt.h 402 B

12345678910111213141516
  1. #ifndef SCRYPT_H
  2. #define SCRYPT_H
  3. #ifdef USE_SCRYPT
  4. extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
  5. uint32_t nonce);
  6. #else /* USE_SCRYPT */
  7. static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
  8. __maybe_unused const unsigned char *ptarget,
  9. __maybe_unused uint32_t nonce)
  10. {
  11. return false;
  12. }
  13. #endif /* USE_SCRYPT */
  14. #endif /* SCRYPT_H */