some tweaks
[mkp224o.git] / common.h
blob89107156f158d93187927b7eb20aec19293eef31
1 #define SECRET_LEN 64
2 #define PUBLIC_LEN 32
3 #define SEED_LEN 32
4 // with checksum + version num
5 #define PUBONION_LEN (PUBLIC_LEN + 3)
7 #define PKPREFIX_SIZE (29 + 3)
8 #define SKPREFIX_SIZE (29 + 3)
10 extern const char * const pkprefix;
11 extern const char * const skprefix;
13 #define FORMATTED_PUBLIC_LEN (PKPREFIX_SIZE + PUBLIC_LEN)
14 #define FORMATTED_SECRET_LEN (SKPREFIX_SIZE + SECRET_LEN)
16 // full onion address, WITHOUT newline or terminating nil char
17 #define ONION_LEN 62
19 extern pthread_mutex_t fout_mutex;
20 extern FILE *fout;
22 extern size_t onionendpos; // end of .onion within string
23 extern size_t direndpos; // end of dir before .onion within string
24 extern size_t printstartpos; // where to start printing from
25 extern size_t printlen; // precalculated, related to printstartpos