libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_sign / ed25519 / ref10 / ge_p3_to_cached.c
blobbde64228cf1e0bb71a22b6cb111ce30eccb019d9
1 #include "ge.h"
3 /*
4 r = p
5 */
7 static const fe d2 = {
8 #include "d2.h"
9 } ;
11 extern void ge_p3_to_cached(ge_cached *r,const ge_p3 *p)
13 fe_add(r->YplusX,p->Y,p->X);
14 fe_sub(r->YminusX,p->Y,p->X);
15 fe_copy(r->Z,p->Z);
16 fe_mul(r->T2d,p->T,d2);