finish wrapping ed25519-donna

This commit is contained in:
cathugger 2019-01-27 20:21:14 +02:00
parent 3406354480
commit 0ec0f85446
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8

View file

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