mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 14:22:23 +00:00
13 lines
219 B
C
13 lines
219 B
C
|
#include "fe25519.h"
|
||
|
|
||
|
int fe25519_iszero_vartime(const fe25519 *x)
|
||
|
{
|
||
|
fe25519 t = *x;
|
||
|
fe25519_freeze(&t);
|
||
|
if (t.v[0]) return 0;
|
||
|
if (t.v[1]) return 0;
|
||
|
if (t.v[2]) return 0;
|
||
|
if (t.v[3]) return 0;
|
||
|
return 1;
|
||
|
}
|