scrypt.h 334 B

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