mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
refactor,fix,rewrite parts,tweak
This commit is contained in:
22
common.h
Normal file
22
common.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#define SECRET_LEN 64
|
||||
#define PUBLIC_LEN 32
|
||||
#define SEED_LEN 32
|
||||
// with checksum + version num
|
||||
#define PUBONION_LEN (PUBLIC_LEN + 3)
|
||||
|
||||
#define PKPREFIX_SIZE (29 + 3)
|
||||
#define SKPREFIX_SIZE (29 + 3)
|
||||
|
||||
#define FORMATTED_PUBLIC_LEN (PKPREFIX_SIZE + PUBLIC_LEN)
|
||||
#define FORMATTED_SECRET_LEN (SKPREFIX_SIZE + SECRET_LEN)
|
||||
|
||||
// full onion address, WITHOUT newline
|
||||
#define ONION_LEN 62
|
||||
|
||||
extern pthread_mutex_t fout_mutex;
|
||||
extern FILE *fout;
|
||||
|
||||
extern size_t onionendpos; // end of .onion within string
|
||||
extern size_t direndpos; // end of dir before .onion within string
|
||||
extern size_t printstartpos; // where to start printing from
|
||||
extern size_t printlen; // precalculated, related to printstartpos
|
||||
Reference in New Issue
Block a user