☰
Debian Codegraph
@
0.4.1.post2-3
/
/
curve
/
ed25519
/
additions
/
fe_isequal.c
☽
☼
curve/ed25519/additions/fe_isequal.c
code
plain
raw
GPL-3
2013-2015 Open Whisper Systems
debian/copyright
1
#include "fe.h"
2
#include "crypto_verify_32.h"
3
4
/*
5
return 1 if f == g
6
return 0 if f != g
7
*/
8
9
int fe_isequal(const fe f, const fe g)
10
{
11
fe h;
12
fe_sub(h, f, g);
13
return 1 ^ (1 & (fe_isnonzero(h) >> 8));
14
}