Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
tpruvot
GitHub Repository: tpruvot/cpuminer-multi
Path: blob/linux/miner.h
1201 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_x16rv2(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
261
int scanhash_x16s(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
262
int scanhash_x17(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
263
int scanhash_x20r(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
264
int scanhash_xevan(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
265
int scanhash_yescrypt(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
266
int scanhash_yescryptr8(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
267
int scanhash_yescryptr16(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
268
int scanhash_yescryptr32(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
269
int scanhash_zr5(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *hashes_done);
270
271
/* api related */
272
void *api_thread(void *userdata);
273
274
struct cpu_info {
275
int thr_id;
276
int accepted;
277
int rejected;
278
double khashes;
279
bool has_monitoring;
280
float cpu_temp;
281
int cpu_fan;
282
uint32_t cpu_clock;
283
};
284
285
struct thr_api {
286
int id;
287
pthread_t pth;
288
struct thread_q *q;
289
};
290
/* end of api */
291
292
struct thr_info {
293
int id;
294
pthread_t pth;
295
pthread_attr_t attr;
296
struct thread_q *q;
297
struct cpu_info cpu;
298
};
299
300
struct work_restart {
301
volatile uint8_t restart;
302
char padding[128 - sizeof(uint8_t)];
303
};
304
305
extern bool opt_debug;
306
extern bool opt_benchmark;
307
extern bool opt_protocol;
308
extern bool opt_showdiff;
309
extern bool opt_quiet;
310
extern bool opt_redirect;
311
extern int opt_priority;
312
extern int opt_timeout;
313
extern bool want_longpoll;
314
extern bool have_longpoll;
315
extern bool have_gbt;
316
extern bool allow_getwork;
317
extern bool want_stratum;
318
extern bool have_stratum;
319
extern bool opt_stratum_stats;
320
extern char *opt_cert;
321
extern char *opt_proxy;
322
extern long opt_proxy_type;
323
extern bool use_syslog;
324
extern bool use_colors;
325
extern pthread_mutex_t applog_lock;
326
extern struct thr_info *thr_info;
327
extern int longpoll_thr_id;
328
extern int stratum_thr_id;
329
extern int api_thr_id;
330
extern int opt_n_threads;
331
extern int num_cpus;
332
extern struct work_restart *work_restart;
333
extern uint32_t opt_work_size;
334
extern double *thr_hashrates;
335
extern uint64_t global_hashrate;
336
extern double stratum_diff;
337
extern double net_diff;
338
extern double net_hashrate;
339
340
#define JSON_RPC_LONGPOLL (1 << 0)
341
#define JSON_RPC_QUIET_404 (1 << 1)
342
#define JSON_RPC_IGNOREERR (1 << 2)
343
344
#define JSON_BUF_LEN 512
345
346
#define CL_N "\x1B[0m"
347
#define CL_RED "\x1B[31m"
348
#define CL_GRN "\x1B[32m"
349
#define CL_YLW "\x1B[33m"
350
#define CL_BLU "\x1B[34m"
351
#define CL_MAG "\x1B[35m"
352
#define CL_CYN "\x1B[36m"
353
354
#define CL_BLK "\x1B[22;30m" /* black */
355
#define CL_RD2 "\x1B[22;31m" /* red */
356
#define CL_GR2 "\x1B[22;32m" /* green */
357
#define CL_BRW "\x1B[22;33m" /* brown */
358
#define CL_BL2 "\x1B[22;34m" /* blue */
359
#define CL_MA2 "\x1B[22;35m" /* magenta */
360
#define CL_CY2 "\x1B[22;36m" /* cyan */
361
#define CL_SIL "\x1B[22;37m" /* gray */
362
363
#ifdef WIN32
364
#define CL_GRY "\x1B[01;30m" /* dark gray */
365
#else
366
#define CL_GRY "\x1B[90m" /* dark gray selectable in putty */
367
#endif
368
#define CL_LRD "\x1B[01;31m" /* light red */
369
#define CL_LGR "\x1B[01;32m" /* light green */
370
#define CL_YL2 "\x1B[01;33m" /* yellow */
371
#define CL_LBL "\x1B[01;34m" /* light blue */
372
#define CL_LMA "\x1B[01;35m" /* light magenta */
373
#define CL_LCY "\x1B[01;36m" /* light cyan */
374
375
#define CL_WHT "\x1B[01;37m" /* white */
376
377
void applog(int prio, const char *fmt, ...);
378
void restart_threads(void);
379
extern json_t *json_rpc_call(CURL *curl, const char *url, const char *userpass,
380
const char *rpc_req, int *curl_err, int flags);
381
void bin2hex(char *s, const unsigned char *p, size_t len);
382
char *abin2hex(const unsigned char *p, size_t len);
383
bool hex2bin(unsigned char *p, const char *hexstr, size_t len);
384
bool jobj_binary(const json_t *obj, const char *key, void *buf, size_t buflen);
385
int varint_encode(unsigned char *p, uint64_t n);
386
size_t address_to_script(unsigned char *out, size_t outsz, const char *addr);
387
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y);
388
bool fulltest(const uint32_t *hash, const uint32_t *target);
389
void work_set_target(struct work* work, double diff);
390
double target_to_diff(uint32_t* target);
391
392
double hash_target_ratio(uint32_t* hash, uint32_t* target);
393
void work_set_target_ratio(struct work* work, uint32_t* hash);
394
395
void get_currentalgo(char* buf, int sz);
396
bool has_aes_ni(void);
397
void cpu_bestfeature(char *outbuf, size_t maxsz);
398
void cpu_getname(char *outbuf, size_t maxsz);
399
void cpu_getmodelid(char *outbuf, size_t maxsz);
400
float cpu_temp(int core);
401
402
struct work {
403
uint32_t data[48];
404
uint32_t target[8];
405
406
double targetdiff;
407
double shareratio;
408
double sharediff;
409
uint32_t resnonce;
410
411
int height;
412
char *txs;
413
char *workid;
414
415
char *job_id;
416
size_t xnonce2_len;
417
unsigned char *xnonce2;
418
};
419
420
struct stratum_job {
421
char *job_id;
422
unsigned char prevhash[32];
423
size_t coinbase_size;
424
unsigned char *coinbase;
425
unsigned char *xnonce2;
426
int merkle_count;
427
unsigned char **merkle;
428
unsigned char version[4];
429
unsigned char nbits[4];
430
unsigned char ntime[4];
431
unsigned char extra[64]; // like lbry claimtrie
432
bool clean;
433
double diff;
434
};
435
436
struct stratum_ctx {
437
char *url;
438
439
CURL *curl;
440
char *curl_url;
441
char curl_err_str[CURL_ERROR_SIZE];
442
curl_socket_t sock;
443
size_t sockbuf_size;
444
char *sockbuf;
445
pthread_mutex_t sock_lock;
446
447
double next_diff;
448
double sharediff;
449
450
char *session_id;
451
size_t xnonce1_size;
452
unsigned char *xnonce1;
453
size_t xnonce2_size;
454
struct stratum_job job;
455
struct work work;
456
pthread_mutex_t work_lock;
457
458
int bloc_height;
459
};
460
461
bool stratum_socket_full(struct stratum_ctx *sctx, int timeout);
462
bool stratum_send_line(struct stratum_ctx *sctx, char *s);
463
char *stratum_recv_line(struct stratum_ctx *sctx);
464
bool stratum_connect(struct stratum_ctx *sctx, const char *url);
465
void stratum_disconnect(struct stratum_ctx *sctx);
466
bool stratum_subscribe(struct stratum_ctx *sctx);
467
bool stratum_authorize(struct stratum_ctx *sctx, const char *user, const char *pass);
468
bool stratum_handle_method(struct stratum_ctx *sctx, const char *s);
469
470
/* rpc 2.0 (xmr) */
471
extern bool jsonrpc_2;
472
extern bool aes_ni_supported;
473
extern char rpc2_id[64];
474
extern char *rpc2_blob;
475
extern size_t rpc2_bloblen;
476
extern uint32_t rpc2_target;
477
extern char *rpc2_job_id;
478
479
json_t *json_rpc2_call(CURL *curl, const char *url, const char *userpass, const char *rpc_req, int *curl_err, int flags);
480
bool rpc2_login(CURL *curl);
481
bool rpc2_login_decode(const json_t *val);
482
bool rpc2_workio_login(CURL *curl);
483
bool rpc2_stratum_job(struct stratum_ctx *sctx, json_t *params);
484
bool rpc2_job_decode(const json_t *job, struct work *work);
485
486
struct thread_q;
487
488
struct thread_q *tq_new(void);
489
void tq_free(struct thread_q *tq);
490
bool tq_push(struct thread_q *tq, void *data);
491
void *tq_pop(struct thread_q *tq, const struct timespec *abstime);
492
void tq_freeze(struct thread_q *tq);
493
void tq_thaw(struct thread_q *tq);
494
495
void parse_arg(int key, char *arg);
496
void parse_config(json_t *config, char *ref);
497
void proper_exit(int reason);
498
499
void applog_compare_hash(void *hash, void *hash_ref);
500
void applog_hex(void *data, int len);
501
void applog_hash(void *hash);
502
void applog_hash64(void *hash);
503
void format_hashrate(double hashrate, char *output);
504
void print_hash_tests(void);
505
506
void sha256d(unsigned char *hash, const unsigned char *data, int len);
507
void allium_hash(void *state, const void *input);
508
void axiomhash(void *state, const void *input);
509
void bastionhash(void *output, const void *input);
510
void blakehash(void *state, const void *input);
511
void blakecoinhash(void *state, const void *input);
512
void blake2s_hash(void *output, const void *input);
513
void blake2b_hash(void *output, const void *input);
514
void bmwhash(void *output, const void *input);
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 x16rv2_hash(void *output, const void *input);
563
void x16s_hash(void *output, const void *input);
564
void x17hash(void *output, const void *input);
565
void x20r_hash(void *output, const void *input);
566
void zr5hash(void *output, const void *input);
567
void yescrypthash(void *output, const void *input);
568
void yescrypt_hash_r8(const char* input, char* output, uint32_t len);
569
void yescrypt_hash_r16(const char* input, char* output, uint32_t len);
570
void yescrypt_hash_r32(const char* input, char* output, uint32_t len);
571
void zr5hash_pok(void *output, uint32_t *pdata);
572
573
574
#endif /* __MINER_H__ */
575
576