yaml stuff won't care about deterministic pw stuff

This commit is contained in:
cathugger 2019-02-14 00:07:20 +00:00
parent 72b739cb03
commit 226f047aef
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8
2 changed files with 9 additions and 8 deletions

View file

@ -13,14 +13,6 @@
// full onion address, WITHOUT newline
#define ONION_LEN 62
// How many times we loop before a reseed
#define DETERMINISTIC_LOOP_COUNT 1<<24
// Argon2 hashed passphrase stretching settings
#define PWHASH_OPSLIMIT 64
#define PWHASH_MEMLIMIT 64 * 1024 * 1024
#define PWHASH_ALG crypto_pwhash_ALG_ARGON2ID13
extern pthread_mutex_t fout_mutex;
extern FILE *fout;

9
main.c
View file

@ -41,6 +41,15 @@ static const char * const skprefix = "== ed25519v1-secret: type0 ==\0\0";
static const char checksumstr[] = ".onion checksum";
#define checksumstrlen (sizeof(checksumstr) - 1) // 15
// How many times we loop before a reseed
#define DETERMINISTIC_LOOP_COUNT 1<<24
// Argon2 hashed passphrase stretching settings
#define PWHASH_OPSLIMIT 64
#define PWHASH_MEMLIMIT 64 * 1024 * 1024
#define PWHASH_ALG crypto_pwhash_ALG_ARGON2ID13
// output directory
static char *workdir = 0;
static size_t workdirlen = 0;