mkp224o/common.h

26 lines
793 B
C
Raw Normal View History

2018-07-09 18:38:41 +02:00
#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)
2020-01-17 15:15:56 +01:00
extern const char * const pkprefix;
extern const char * const skprefix;
2018-07-09 18:38:41 +02:00
#define FORMATTED_PUBLIC_LEN (PKPREFIX_SIZE + PUBLIC_LEN)
#define FORMATTED_SECRET_LEN (SKPREFIX_SIZE + SECRET_LEN)
2019-03-15 22:04:40 +01:00
// full onion address, WITHOUT newline or terminating nil char
2018-07-09 18:38:41 +02:00
#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