Initial commit
This commit is contained in:
commit
c101616e62
309 changed files with 53937 additions and 0 deletions
14
bundled/cbits/ref10/ge_p3_tobytes.c
Normal file
14
bundled/cbits/ref10/ge_p3_tobytes.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "ge.h"
|
||||
|
||||
static inline void ge_p3_tobytes(unsigned char *s,const ge_p3 *h)
|
||||
{
|
||||
fe recip;
|
||||
fe x;
|
||||
fe y;
|
||||
|
||||
fe_invert(recip,h->Z);
|
||||
fe_mul(x,h->X,recip);
|
||||
fe_mul(y,h->Y,recip);
|
||||
fe_tobytes(s,y);
|
||||
s[31] ^= fe_isnegative(x) << 7;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue