diff options
Diffstat (limited to 'libs/libsignal/src/curve25519/ed25519/additions/ge_neg.c')
-rw-r--r-- | libs/libsignal/src/curve25519/ed25519/additions/ge_neg.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/libsignal/src/curve25519/ed25519/additions/ge_neg.c b/libs/libsignal/src/curve25519/ed25519/additions/ge_neg.c new file mode 100644 index 0000000000..d679713fe0 --- /dev/null +++ b/libs/libsignal/src/curve25519/ed25519/additions/ge_neg.c @@ -0,0 +1,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); +} |