mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 14:02:46 +00:00
add amd64-{51-30k,64-24k} from SUPERCOP, now use autoconf
This commit is contained in:
parent
ad9c6592ed
commit
81cebae449
162 changed files with 79451 additions and 277 deletions
9
main.c
9
main.c
|
@ -7,8 +7,7 @@
|
|||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <sodium/randombytes.h>
|
||||
#include "ed25519/ref10/ed25519_ref10.h"
|
||||
#include "ed25519/ref10/ge.h"
|
||||
#include "ed25519/ed25519.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
@ -244,8 +243,8 @@ again:
|
|||
if (endwork)
|
||||
goto end;
|
||||
|
||||
ed25519_ref10_seckey_expand(sk,seed);
|
||||
ed25519_ref10_pubkey(pk,sk);
|
||||
ed25519_seckey_expand(sk,seed);
|
||||
ed25519_pubkey(pk,sk);
|
||||
for (i = 0;i < VEC_LENGTH(bfilters);++i) {
|
||||
size_t l = VEC_BUF(bfilters,i).len;
|
||||
if (memcmp(pk,VEC_BUF(bfilters,i).f,l) == 0 &&
|
||||
|
@ -329,7 +328,7 @@ static void *dofastwork(void *task)
|
|||
|
||||
initseed:
|
||||
randombytes(seed,sizeof(seed));
|
||||
ed25519_ref10_seckey_expand(sk,seed);
|
||||
ed25519_seckey_expand(sk,seed);
|
||||
|
||||
ge_scalarmult_base(&ge_public,sk);
|
||||
ge_p3_tobytes(pk,&ge_public);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue