libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_sign / ed25519 / ref10 / ge_p1p1_to_p3.c
blob2f57b109685afa33651f9eeae89c4280a67f3798
1 #include "ge.h"
3 /*
4 r = p
5 */
7 extern void ge_p1p1_to_p3(ge_p3 *r,const ge_p1p1 *p)
9 fe_mul(r->X,p->X,p->T);
10 fe_mul(r->Y,p->Y,p->Z);
11 fe_mul(r->Z,p->Z,p->T);
12 fe_mul(r->T,p->X,p->Y);