2019-03-16 16:57:29 -03:00
|
|
|
|
|
|
|
extern pthread_mutex_t keysgenerated_mutex;
|
|
|
|
extern volatile size_t keysgenerated;
|
|
|
|
extern volatile int endwork;
|
|
|
|
|
|
|
|
extern int yamloutput;
|
2020-01-17 11:15:56 -03:00
|
|
|
extern int yamlraw;
|
2019-03-16 16:57:29 -03:00
|
|
|
extern int numwords;
|
|
|
|
extern size_t numneedgenerate;
|
|
|
|
|
|
|
|
extern char *workdir;
|
|
|
|
extern size_t workdirlen;
|
|
|
|
|
|
|
|
// statistics, if enabled
|
|
|
|
#ifdef STATISTICS
|
|
|
|
struct statstruct {
|
|
|
|
union {
|
|
|
|
u32 v;
|
|
|
|
size_t align;
|
|
|
|
} numcalc;
|
|
|
|
union {
|
|
|
|
u32 v;
|
|
|
|
size_t align;
|
|
|
|
} numsuccess;
|
|
|
|
union {
|
|
|
|
u32 v;
|
|
|
|
size_t align;
|
|
|
|
} numrestart;
|
|
|
|
} ;
|
|
|
|
VEC_STRUCT(statsvec,struct statstruct);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef PASSPHRASE
|
|
|
|
extern pthread_mutex_t determseed_mutex;
|
|
|
|
extern u8 determseed[SEED_LEN];
|
2023-09-05 19:00:04 -03:00
|
|
|
extern int pw_skipnear;
|
|
|
|
extern int pw_warnnear;
|
2019-03-16 16:57:29 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
extern void worker_init(void);
|
|
|
|
|
|
|
|
extern char *makesname(void);
|
2020-11-22 10:13:50 -03:00
|
|
|
extern size_t worker_batch_memuse(void);
|
2019-03-16 16:57:29 -03:00
|
|
|
|
2022-05-05 16:18:41 -04:00
|
|
|
extern void *CRYPTO_NAMESPACE(worker_batch)(void *task);
|
2019-03-16 16:57:29 -03:00
|
|
|
#ifdef PASSPHRASE
|
2022-05-05 16:18:41 -04:00
|
|
|
extern void *CRYPTO_NAMESPACE(worker_batch_pass)(void *task);
|
2019-03-16 16:57:29 -03:00
|
|
|
#endif
|