summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/curve25519/ed25519/additions/ge_neg.c
blob: d679713fe0c4b8bff0e2c0f23fe9c6240b096e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "crypto_additions.h"
#include "ge.h"

/*
return r = -p
*/


void ge_neg(ge_p3* r, const ge_p3 *p)
{
  fe_neg(r->X, p->X);
  fe_copy(r->Y, p->Y);
  fe_copy(r->Z, p->Z);
  fe_neg(r->T, p->T);
}