mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
set thread size
This commit is contained in:
9
worker.c
9
worker.c
@@ -94,9 +94,9 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
|
||||
}
|
||||
|
||||
// disabled as this was never ever triggered as far as I'm aware
|
||||
#if 0
|
||||
#if 1
|
||||
// Sanity check that the public key matches the private one.
|
||||
ge_p3 point;
|
||||
ge_p3 ALIGN(16) point;
|
||||
u8 testpk[PUBLIC_LEN];
|
||||
ge_scalarmult_base(&point, secret);
|
||||
ge_p3_tobytes(testpk, &point);
|
||||
@@ -220,6 +220,11 @@ static void reseedright(u8 sk[SECRET_LEN])
|
||||
#define BATCHNUM 2048
|
||||
#endif
|
||||
|
||||
size_t worker_batch_memuse(void)
|
||||
{
|
||||
return (sizeof(ge_p3) + sizeof(fe) + sizeof(bytes32)) * BATCHNUM;
|
||||
}
|
||||
|
||||
#include "worker_batch.inc.h"
|
||||
|
||||
#include "worker_batch_pass.inc.h"
|
||||
|
||||
Reference in New Issue
Block a user