fix ed25519-donna makedepends

This commit is contained in:
cathugger
2019-11-15 02:48:19 +00:00
parent c0ef36f200
commit 6f7e220b60
12 changed files with 67 additions and 28 deletions

View File

@@ -11,6 +11,7 @@ void *worker_batch(void *task)
ge_p3 ge_public;
char *sname;
// state to keep batch data
ge_p3 ge_batch[BATCHNUM];
fe *(batchgez)[BATCHNUM];
fe tmp_batch[BATCHNUM];
@@ -23,6 +24,7 @@ void *worker_batch(void *task)
struct statstruct *st = (struct statstruct *)task;
#endif
// set up right pointers
for (size_t b = 0;b < BATCHNUM;++b)
batchgez[b] = &GEZ(ge_batch[b]);
@@ -53,12 +55,13 @@ initseed:
if (unlikely(endwork))
goto end;
for (size_t b = 0;b < BATCHNUM;++b) {
ge_batch[b] = ge_public;
ge_add(&sum,&ge_public,&ge_eightpoint);
ge_p1p1_to_p3(&ge_public,&sum);
}
// NOTE: leaves unfinished
// NOTE: leaves unfinished one bit at the very end
ge_p3_batchtobytes_destructive_1(pk_batch,ge_batch,batchgez,tmp_batch,BATCHNUM);
#ifdef STATISTICS