mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-10 03:27:19 -03:00
finish wrapping ed25519-donna
This commit is contained in:
parent
3406354480
commit
0ec0f85446
1 changed files with 6 additions and 0 deletions
|
@ -179,6 +179,7 @@ static int ed25519_keypair(unsigned char *pk,unsigned char *sk)
|
|||
return 0;
|
||||
}
|
||||
// hacky, but works for current stuff in main.c
|
||||
#define fe bignum25519 ALIGN(16)
|
||||
#define ge_p1p1 ge25519_p1p1 ALIGN(16)
|
||||
#define ge_p3 ge25519 ALIGN(16)
|
||||
#define ge_cached ge25519_pniels ALIGN(16)
|
||||
|
@ -186,6 +187,11 @@ static int ed25519_keypair(unsigned char *pk,unsigned char *sk)
|
|||
#define ge_p1p1_to_p3 ge25519_p1p1_to_full
|
||||
#define ge_p3_tobytes ge25519_pack
|
||||
|
||||
#define ge_p3_batchtobytes_destructive_1 ge25519_batchpack_destructive_1
|
||||
#define ge_p3_batchtobytes_destructive_finish ge25519_batchpack_destructive_finish
|
||||
|
||||
#define GEZ(x) ((x).z)
|
||||
|
||||
DONNA_INLINE static void ge_add(ge25519_p1p1 *r,const ge25519 *p,const ge25519_pniels *q)
|
||||
{
|
||||
ge25519_pnielsadd_p1p1(r,p,q,0);
|
||||
|
|
Loading…
Reference in a new issue