summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c')
-rw-r--r--libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c b/libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c
deleted file mode 100644
index 67c5d33c96..0000000000
--- a/libs/libaxolotl/src/curve25519/ed25519/additions/fe_isequal.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include "fe.h"
-#include "crypto_verify_32.h"
-
-/*
-return 1 if f == g
-return 0 if f != g
-*/
-
-int fe_isequal(const fe f, const fe g)
-{
- fe h;
- fe_sub(h, f, g);
- return 1 ^ (1 & (fe_isnonzero(h) >> 8));
-}