This commit is contained in:
cathugger 2021-11-02 17:32:10 +02:00
parent 7dea621e41
commit f1c56e7480
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8
6 changed files with 23 additions and 3 deletions

View file

@ -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;
}