Debian Codegraph @

crypto_mGnP/ed25519/ref10/ge_p3_to_cached.c

raw
1 // linker define ge_p3_to_cached
2 // linker use fe_add fe_sub fe_copy fe_mul
3
4 #include "ge.h"
5
6 /*
7 r = p
8 */
9
10 static const fe d2 = {
11 #include "d2.h"
12 } ;
13
14 extern void ge_p3_to_cached(ge_cached *r,const ge_p3 *p)
15 {
16 fe_add(r->YplusX,p->Y,p->X);
17 fe_sub(r->YminusX,p->Y,p->X);
18 fe_copy(r->Z,p->Z);
19 fe_mul(r->T2d,p->T,d2);
20 }