Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
litecoincash-project
GitHub Repository: litecoincash-project/cpuminer-multi
Path: blob/master/miner.h
548 views
1
#ifndef __MINER_H__
2
#define __MINER_H__
3
4
#include <cpuminer-config.h>
5
6
#define USER_AGENT PACKAGE_NAME "/" PACKAGE_VERSION
7
#define MAX_CPUS 16
8
9
#ifdef _MSC_VER
10
11
#undef USE_ASM /* to fix */
12
13
#ifdef NOASM
14
#undef USE_ASM
15
#endif
16
17
/* missing arch defines for msvc */
18
#if defined(_M_X64)
19
#define __i386__ 1
20
#define __x86_64__ 1
21
#elif defined(_M_X86)
22
#define __i386__ 1
23
#endif
24
25
#endif /* _MSC_VER */
26
27
#include <stdbool.h>
28
#include <inttypes.h>
29
#include <sys/time.h>
30
31
#include <pthread.h>
32
#include <jansson.h>
33
#include <curl/curl.h>
34
35
#ifdef STDC_HEADERS
36
# include <stdlib.h>
37
# include <stddef.h>
38
#else
39
# ifdef HAVE_STDLIB_H
40
# include <stdlib.h>
41
# endif
42
#endif
43
44
#ifdef HAVE_ALLOCA_H
45
# include <alloca.h>
46
#elif !defined alloca
47
# ifdef __GNUC__
48
# define alloca __builtin_alloca
49
# elif defined _AIX
50
# define alloca __alloca
51
# elif defined _MSC_VER
52
# include <malloc.h>
53
# define alloca _alloca
54
# elif !defined HAVE_ALLOCA
55
# ifdef __cplusplus
56
extern "C"
57
# endif
58
void *alloca (size_t);
59
# endif
60
#endif
61
62
#ifdef HAVE_SYSLOG_H
63
#include <syslog.h>
64
#define LOG_BLUE 0x10 /* unique value */
65
#else
66
enum {
67
LOG_ERR,
68
LOG_WARNING,
69
LOG_NOTICE,
70
LOG_INFO,
71
LOG_DEBUG,
72
/* custom notices */
73
LOG_BLUE = 0x10,
74
};
75
#endif
76
77
#include "compat.h"
78
79
#ifndef ARRAY_SIZE
80
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
81
#endif
82
83
static inline bool is_windows(void) {
84
#ifdef WIN32
85
return 1;
86
#else
87
return 0;
88
#endif
89
}
90
91
#if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
92
#define WANT_BUILTIN_BSWAP
93
#else
94
#define bswap_32(x) ((((x) << 24) & 0xff000000u) | (((x) << 8) & 0x00ff0000u) \
95
| (((x) >> 8) & 0x0000ff00u) | (((x) >> 24) & 0x000000ffu))
96
#endif
97
98
static inline uint32_t swab32(uint32_t v)
99
{
100
#ifdef WANT_BUILTIN_BSWAP
101
return __builtin_bswap32(v);
102
#else
103
return bswap_32(v);
104
#endif
105
}
106
107
#ifdef HAVE_SYS_ENDIAN_H
108
#include <sys/endian.h>
109
#endif
110
111
typedef unsigned char uchar;
112
113
#if !HAVE_DECL_BE32DEC
114
static inline uint32_t be32dec(const void *pp)
115
{
116
const uint8_t *p = (uint8_t const *)pp;
117
return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) +
118
((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
119
}
120
#endif
121
122
#if !HAVE_DECL_LE32DEC
123
static inline uint32_t le32dec(const void *pp)
124
{
125
const uint8_t *p = (uint8_t const *)pp;
126
return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) +
127
((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
128
}
129
#endif
130
131
#if !HAVE_DECL_BE32ENC
132
static inline void be32enc(void *pp, uint32_t x)
133
{
134
uint8_t *p = (uint8_t *)pp;
135
p[3] = x & 0xff;
136
p[2] = (x >> 8) & 0xff;
137
p[1] = (x >> 16) & 0xff;
138
p[0] = (x >> 24) & 0xff;
139
}
140
#endif
141
142
#if !HAVE_DECL_LE32ENC
143
static inline void le32enc(void *pp, uint32_t x)
144
{
145
uint8_t *p = (uint8_t *)pp;
146
p[0] = x & 0xff;
147
p[1] = (x >> 8) & 0xff;
148
p[2] = (x >> 16) & 0xff;
149
p[3] = (x >> 24) & 0xff;
150
}
151
#endif
152
153
#if !HAVE_DECL_LE16DEC
154
static inline uint16_t le16dec(const void *pp)
155
{
156
const uint8_t *p = (uint8_t const *)pp;
157
return ((uint16_t)(p[0]) + ((uint16_t)(p[1]) << 8));
158
}
159
#endif
160
161
#if !HAVE_DECL_LE16ENC
162
static inline void le16enc(void *pp, uint16_t x)
163
{
164
uint8_t *p = (uint8_t *)pp;
165
p[0] = x & 0xff;
166
p[1] = (x >> 8) & 0xff;
167
}
168
#endif
169
170
#if JANSSON_MAJOR_VERSION >= 2
171
#define JSON_LOADS(str, err_ptr) json_loads(str, 0, err_ptr)
172
#define JSON_LOADF(path, err_ptr) json_load_file(path, 0, err_ptr)
173
#else
174
#define JSON_LOADS(str, err_ptr) json_loads(str, err_ptr)
175
#define JSON_LOADF(path, err_ptr) json_load_file(path, err_ptr)
176
#endif
177
178
json_t* json_load_url(char* cfg_url, json_error_t *err);
179
180
void sha256_init(uint32_t *state);
181
void sha256_transform(uint32_t *state, const uint32_t *block, int swap);
182
void sha256d(unsigned char *hash, const unsigned char *data, int len);
183
184
#ifdef USE_ASM
185
#if defined(__ARM_NEON__) || defined(__i386__) || defined(__x86_64__)
186
#define HAVE_SHA256_4WAY 1
187
int sha256_use_4way();
188
void sha256_init_4way(uint32_t *state);
189
void sha256_transform_4way(uint32_t *state, const uint32_t *block, int swap);
190
#endif
191
#if defined(__x86_64__) && defined(USE_AVX2)
192
#define HAVE_SHA256_8WAY 1
193
int sha256_use_8way();
194
void sha256_init_8way(uint32_t *state);
195
void sha256_transform_8way(uint32_t *state, const uint32_t *block, int swap);
196
#endif
197
#endif
198
199
struct work;
200
201
int scanhash_allium(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
202
int scanhash_axiom(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
203
int scanhash_bastion(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
204
int scanhash_blake(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
205
int scanhash_blakecoin(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
206
int scanhash_blake2b(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
207
int scanhash_blake2s(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
208
int scanhash_bmw(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
209
int scanhash_cryptolight(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
210
int scanhash_cryptonight(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
211
int scanhash_c11(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
212
int scanhash_decred(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
213
int scanhash_drop(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
214
int scanhash_fresh(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
215
int scanhash_geek(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
216
int scanhash_groestl(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
217
int scanhash_heavy(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
218
int scanhash_ink(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
219
int scanhash_keccak(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
220
int scanhash_jha(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
221
int scanhash_lbry(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
222
int scanhash_luffa(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
223
int scanhash_lyra2(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
224
int scanhash_lyra2rev2(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
225
int scanhash_lyra2v3(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
226
int scanhash_myriad(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
227
int scanhash_neoscrypt(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done, uint32_t profile);
228
int scanhash_nist5(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
229
int scanhash_pentablake(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
230
int scanhash_phi1612(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
231
int scanhash_phi2(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
232
int scanhash_pluck(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done,
233
unsigned char *scratchbuf, int N);
234
int scanhash_quark(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
235
void init_quarkhash_contexts();
236
int scanhash_qubit(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
237
int scanhash_rf256(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
238
int scanhash_sha256d(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
239
unsigned char *scrypt_buffer_alloc(int N);
240
int scanhash_scrypt(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done,
241
unsigned char *scratchbuf, uint32_t N);
242
int scanhash_scryptjane(int Nfactor, int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
243
int scanhash_sia(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
244
int scanhash_sib(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
245
int scanhash_skein(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
246
int scanhash_skein2(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
247
int scanhash_sonoa(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
248
int scanhash_s3(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
249
int scanhash_timetravel(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
250
int scanhash_bitcore(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
251
int scanhash_tribus(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
252
int scanhash_veltor(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
253
int scanhash_x11evo(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
254
int scanhash_x11(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
255
int scanhash_x12(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
256
int scanhash_x13(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
257
int scanhash_x14(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
258
int scanhash_x15(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
259
int scanhash_x16r(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
260
int scanhash_x16s(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
261
int scanhash_x17(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
262
int scanhash_x20r(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
263
int scanhash_xevan(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
264
int scanhash_zr5(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
265
int scanhash_minotaur(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done, bool minotaurX);
266
267
/* api related */
268
void *api_thread(void *userdata);
269
270
struct cpu_info {
271
int thr_id;
272
int accepted;
273
int rejected;
274
double khashes;
275
bool has_monitoring;
276
float cpu_temp;
277
int cpu_fan;
278
uint32_t cpu_clock;
279
};
280
281
struct thr_api {
282
int id;
283
pthread_t pth;
284
struct thread_q *q;
285
};
286
/* end of api */
287
288
struct thr_info {
289
int id;
290
pthread_t pth;
291
pthread_attr_t attr;
292
struct thread_q *q;
293
struct cpu_info cpu;
294
};
295
296
struct work_restart {
297
volatile uint8_t restart;
298
char padding[128 - sizeof(uint8_t)];
299
};
300
301
extern bool opt_debug;
302
extern bool opt_benchmark;
303
extern bool opt_protocol;
304
extern bool opt_showdiff;
305
extern bool opt_quiet;
306
extern bool opt_redirect;
307
extern int opt_priority;
308
extern int opt_timeout;
309
extern bool want_longpoll;
310
extern bool have_longpoll;
311
extern bool have_gbt;
312
extern bool allow_getwork;
313
extern bool want_stratum;
314
extern bool have_stratum;
315
extern bool opt_stratum_stats;
316
extern char *opt_cert;
317
extern char *opt_proxy;
318
extern long opt_proxy_type;
319
extern bool use_syslog;
320
extern bool use_colors;
321
extern pthread_mutex_t applog_lock;
322
extern struct thr_info *thr_info;
323
extern int longpoll_thr_id;
324
extern int stratum_thr_id;
325
extern int api_thr_id;
326
extern int opt_n_threads;
327
extern int num_cpus;
328
extern struct work_restart *work_restart;
329
extern uint32_t opt_work_size;
330
extern double *thr_hashrates;
331
extern uint64_t global_hashrate;
332
extern double stratum_diff;
333
extern double net_diff;
334
extern double net_hashrate;
335
336
#define JSON_RPC_LONGPOLL (1 << 0)
337
#define JSON_RPC_QUIET_404 (1 << 1)
338
#define JSON_RPC_IGNOREERR (1 << 2)
339
340
#define JSON_BUF_LEN 512
341
342
#define CL_N "\x1B[0m"
343
#define CL_RED "\x1B[31m"
344
#define CL_GRN "\x1B[32m"
345
#define CL_YLW "\x1B[33m"
346
#define CL_BLU "\x1B[34m"
347
#define CL_MAG "\x1B[35m"
348
#define CL_CYN "\x1B[36m"
349
350
#define CL_BLK "\x1B[22;30m" /* black */
351
#define CL_RD2 "\x1B[22;31m" /* red */
352
#define CL_GR2 "\x1B[22;32m" /* green */
353
#define CL_BRW "\x1B[22;33m" /* brown */
354
#define CL_BL2 "\x1B[22;34m" /* blue */
355
#define CL_MA2 "\x1B[22;35m" /* magenta */
356
#define CL_CY2 "\x1B[22;36m" /* cyan */
357
#define CL_SIL "\x1B[22;37m" /* gray */
358
359
#ifdef WIN32
360
#define CL_GRY "\x1B[01;30m" /* dark gray */
361
#else
362
#define CL_GRY "\x1B[90m" /* dark gray selectable in putty */
363
#endif
364
#define CL_LRD "\x1B[01;31m" /* light red */
365
#define CL_LGR "\x1B[01;32m" /* light green */
366
#define CL_YL2 "\x1B[01;33m" /* yellow */
367
#define CL_LBL "\x1B[01;34m" /* light blue */
368
#define CL_LMA "\x1B[01;35m" /* light magenta */
369
#define CL_LCY "\x1B[01;36m" /* light cyan */
370
371
#define CL_WHT "\x1B[01;37m" /* white */
372
373
void applog(int prio, const char *fmt, ...);
374
void restart_threads(void);
375
extern json_t *json_rpc_call(CURL *curl, const char *url, const char *userpass,
376
const char *rpc_req, int *curl_err, int flags);
377
// Segwit BEGIN
378
void memrev(unsigned char *p, size_t len);
379
// Segwit END
380
void bin2hex(char *s, const unsigned char *p, size_t len);
381
char *abin2hex(const unsigned char *p, size_t len);
382
bool hex2bin(unsigned char *p, const char *hexstr, size_t len);
383
bool jobj_binary(const json_t *obj, const char *key, void *buf, size_t buflen);
384
int varint_encode(unsigned char *p, uint64_t n);
385
size_t address_to_script(unsigned char *out, size_t outsz, const char *addr);
386
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y);
387
bool fulltest(const uint32_t *hash, const uint32_t *target);
388
void work_set_target(struct work* work, double diff);
389
double target_to_diff(uint32_t* target);
390
391
double hash_target_ratio(uint32_t* hash, uint32_t* target);
392
void work_set_target_ratio(struct work* work, uint32_t* hash);
393
394
void get_currentalgo(char* buf, int sz);
395
bool has_aes_ni(void);
396
void cpu_bestfeature(char *outbuf, size_t maxsz);
397
void cpu_getname(char *outbuf, size_t maxsz);
398
void cpu_getmodelid(char *outbuf, size_t maxsz);
399
float cpu_temp(int core);
400
401
struct work {
402
uint32_t data[48];
403
uint32_t target[8];
404
405
double targetdiff;
406
double shareratio;
407
double sharediff;
408
uint32_t resnonce;
409
410
int height;
411
char *txs;
412
char *workid;
413
414
char *job_id;
415
size_t xnonce2_len;
416
unsigned char *xnonce2;
417
};
418
419
struct stratum_job {
420
char *job_id;
421
unsigned char prevhash[32];
422
size_t coinbase_size;
423
unsigned char *coinbase;
424
unsigned char *xnonce2;
425
int merkle_count;
426
unsigned char **merkle;
427
unsigned char version[4];
428
unsigned char nbits[4];
429
unsigned char ntime[4];
430
unsigned char extra[64]; // like lbry claimtrie
431
bool clean;
432
double diff;
433
};
434
435
struct stratum_ctx {
436
char *url;
437
438
CURL *curl;
439
char *curl_url;
440
char curl_err_str[CURL_ERROR_SIZE];
441
curl_socket_t sock;
442
size_t sockbuf_size;
443
char *sockbuf;
444
pthread_mutex_t sock_lock;
445
446
double next_diff;
447
double sharediff;
448
449
char *session_id;
450
size_t xnonce1_size;
451
unsigned char *xnonce1;
452
size_t xnonce2_size;
453
struct stratum_job job;
454
struct work work;
455
pthread_mutex_t work_lock;
456
457
int bloc_height;
458
};
459
460
bool stratum_socket_full(struct stratum_ctx *sctx, int timeout);
461
bool stratum_send_line(struct stratum_ctx *sctx, char *s);
462
char *stratum_recv_line(struct stratum_ctx *sctx);
463
bool stratum_connect(struct stratum_ctx *sctx, const char *url);
464
void stratum_disconnect(struct stratum_ctx *sctx);
465
bool stratum_subscribe(struct stratum_ctx *sctx);
466
bool stratum_authorize(struct stratum_ctx *sctx, const char *user, const char *pass);
467
bool stratum_handle_method(struct stratum_ctx *sctx, const char *s);
468
469
/* rpc 2.0 (xmr) */
470
extern bool jsonrpc_2;
471
extern bool aes_ni_supported;
472
extern char rpc2_id[64];
473
extern char *rpc2_blob;
474
extern size_t rpc2_bloblen;
475
extern uint32_t rpc2_target;
476
extern char *rpc2_job_id;
477
478
json_t *json_rpc2_call(CURL *curl, const char *url, const char *userpass, const char *rpc_req, int *curl_err, int flags);
479
bool rpc2_login(CURL *curl);
480
bool rpc2_login_decode(const json_t *val);
481
bool rpc2_workio_login(CURL *curl);
482
bool rpc2_stratum_job(struct stratum_ctx *sctx, json_t *params);
483
bool rpc2_job_decode(const json_t *job, struct work *work);
484
485
struct thread_q;
486
487
struct thread_q *tq_new(void);
488
void tq_free(struct thread_q *tq);
489
bool tq_push(struct thread_q *tq, void *data);
490
void *tq_pop(struct thread_q *tq, const struct timespec *abstime);
491
void tq_freeze(struct thread_q *tq);
492
void tq_thaw(struct thread_q *tq);
493
494
void parse_arg(int key, char *arg);
495
void parse_config(json_t *config, char *ref);
496
void proper_exit(int reason);
497
498
void applog_compare_hash(void *hash, void *hash_ref);
499
void applog_hex(void *data, int len);
500
void applog_hash(void *hash);
501
void applog_hash64(void *hash);
502
void format_hashrate(double hashrate, char *output);
503
void print_hash_tests(void);
504
505
void sha256d(unsigned char *hash, const unsigned char *data, int len);
506
void allium_hash(void *state, const void *input);
507
void axiomhash(void *state, const void *input);
508
void bastionhash(void *output, const void *input);
509
void blakehash(void *state, const void *input);
510
void blakecoinhash(void *state, const void *input);
511
void blake2s_hash(void *output, const void *input);
512
void blake2b_hash(void *output, const void *input);
513
void bmwhash(void *output, const void *input);
514
void minotaurhash(void *output, const void *input, bool minotaurX);
515
void c11hash(void *output, const void *input);
516
void cryptolight_hash(void* output, const void* input);
517
void cryptonight_hash(void* output, const void* input);
518
void cryptonight_hash_v1(void* output, const void* input);
519
void decred_hash(void *output, const void *input);
520
void droplp_hash(void *output, const void *input);
521
void groestlhash(void *output, const void *input);
522
void heavyhash(unsigned char* output, const unsigned char* input, int len);
523
void quarkhash(void *state, const void *input);
524
void freshhash(void* output, const void* input, uint32_t len);
525
void geekhash(void *output, const void *input);
526
void keccakhash(void *state, const void *input);
527
void inkhash(void *state, const void *input); /* shavite */
528
void jha_hash(void *output, const void *input);
529
void lbry_hash(void *output, const void *input);
530
void luffahash(void *output, const void *input);
531
void lyra2_hash(void *state, const void *input);
532
void lyra2rev2_hash(void *state, const void *input);
533
void lyra2v3_hash(void *state, const void *input);
534
void myriadhash(void *output, const void *input);
535
void neoscrypt(unsigned char *output, const unsigned char *password, uint32_t profile);
536
void nist5hash(void *output, const void *input);
537
void phi1612_hash(void *state, const void *input);
538
void phi2_hash(void *state, const void *input);
539
void pluck_hash(uint32_t *hash, const uint32_t *data, uchar *hashbuffer, const int N);
540
void pentablakehash(void *output, const void *input);
541
void qubithash(void *output, const void *input);
542
void rf256_hash(void *out, const void *in, size_t len);
543
void scrypthash(void *output, const void *input, uint32_t N);
544
void scryptjanehash(void *output, const void *input, uint32_t Nfactor);
545
void sibhash(void *output, const void *input);
546
void skeinhash(void *state, const void *input);
547
void skein2hash(void *state, const void *input);
548
void sonoa_hash(void *output, const void *input);
549
void s3hash(void *output, const void *input);
550
void timetravel_hash(void *output, const void *input);
551
void bitcore_hash(void *output, const void *input);
552
void tribus_hash(void *output, const void *input);
553
void veltor_hash(void *output, const void *input);
554
void xevan_hash(void *output, const void *input);
555
void x11evo_hash(void *output, const void *input);
556
void x11hash(void *output, const void *input);
557
void x12hash(void *output, const void *input);
558
void x13hash(void *output, const void *input);
559
void x14hash(void *output, const void *input);
560
void x15hash(void *output, const void *input);
561
void x16r_hash(void *output, const void *input);
562
void x16s_hash(void *output, const void *input);
563
void x17hash(void *output, const void *input);
564
void x20r_hash(void *output, const void *input);
565
void zr5hash(void *output, const void *input);
566
void zr5hash_pok(void *output, uint32_t *pdata);
567
568
569
#endif /* __MINER_H__ */
570
571