mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
finish wrapping ed25519-donna
This commit is contained in:
@@ -179,6 +179,7 @@ static int ed25519_keypair(unsigned char *pk,unsigned char *sk)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// hacky, but works for current stuff in main.c
|
// hacky, but works for current stuff in main.c
|
||||||
|
#define fe bignum25519 ALIGN(16)
|
||||||
#define ge_p1p1 ge25519_p1p1 ALIGN(16)
|
#define ge_p1p1 ge25519_p1p1 ALIGN(16)
|
||||||
#define ge_p3 ge25519 ALIGN(16)
|
#define ge_p3 ge25519 ALIGN(16)
|
||||||
#define ge_cached ge25519_pniels 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_p1p1_to_p3 ge25519_p1p1_to_full
|
||||||
#define ge_p3_tobytes ge25519_pack
|
#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)
|
DONNA_INLINE static void ge_add(ge25519_p1p1 *r,const ge25519 *p,const ge25519_pniels *q)
|
||||||
{
|
{
|
||||||
ge25519_pnielsadd_p1p1(r,p,q,0);
|
ge25519_pnielsadd_p1p1(r,p,q,0);
|
||||||
|
|||||||
Reference in New Issue
Block a user