mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
idk
This commit is contained in:
@@ -38,6 +38,7 @@ void *worker_batch(void *task)
|
||||
sname = makesname();
|
||||
|
||||
initseed:
|
||||
|
||||
#ifdef STATISTICS
|
||||
++st->numrestart.v;
|
||||
#endif
|
||||
@@ -114,8 +115,11 @@ initseed:
|
||||
|
||||
end:
|
||||
free(sname);
|
||||
|
||||
POSTFILTER
|
||||
|
||||
sodium_memzero(secret,sizeof(secret));
|
||||
sodium_memzero(seed,sizeof(seed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ void *worker_batch_pass(void *task)
|
||||
sname = makesname();
|
||||
|
||||
initseed:
|
||||
|
||||
#ifdef STATISTICS
|
||||
++st->numrestart.v;
|
||||
#endif
|
||||
@@ -191,9 +192,12 @@ initseed:
|
||||
|
||||
end:
|
||||
free(sname);
|
||||
|
||||
POSTFILTER
|
||||
|
||||
sodium_memzero(secret,sizeof(secret));
|
||||
sodium_memzero(seed,sizeof(seed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif // PASSPHRASE
|
||||
|
||||
@@ -33,6 +33,7 @@ void *worker_fast(void *task)
|
||||
sname = makesname();
|
||||
|
||||
initseed:
|
||||
|
||||
#ifdef STATISTICS
|
||||
++st->numrestart.v;
|
||||
#endif
|
||||
@@ -96,8 +97,11 @@ initseed:
|
||||
|
||||
end:
|
||||
free(sname);
|
||||
|
||||
POSTFILTER
|
||||
|
||||
sodium_memzero(secret,sizeof(secret));
|
||||
sodium_memzero(seed,sizeof(seed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ void *worker_fast_pass(void *task)
|
||||
sname = makesname();
|
||||
|
||||
initseed:
|
||||
|
||||
#ifdef STATISTICS
|
||||
++st->numrestart.v;
|
||||
#endif
|
||||
@@ -104,9 +105,12 @@ initseed:
|
||||
|
||||
end:
|
||||
free(sname);
|
||||
|
||||
POSTFILTER
|
||||
|
||||
sodium_memzero(secret,sizeof(secret));
|
||||
sodium_memzero(seed,sizeof(seed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif // PASSPHRASE
|
||||
|
||||
@@ -33,6 +33,7 @@ void *worker_slow(void *task)
|
||||
initseed:
|
||||
randombytes(seed,sizeof(seed));
|
||||
ed25519_seckey_expand(sk,seed);
|
||||
|
||||
#ifdef STATISTICS
|
||||
++st->numrestart.v;
|
||||
#endif
|
||||
@@ -83,8 +84,11 @@ next:
|
||||
|
||||
end:
|
||||
free(sname);
|
||||
|
||||
POSTFILTER
|
||||
|
||||
sodium_memzero(secret,sizeof(secret));
|
||||
sodium_memzero(seed,sizeof(seed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user