ZeroTierOne/ext/ed25519-amd64-asm/fe25519_getparity.c

9 lines
152 B
C

#include "fe25519.h"
unsigned char fe25519_getparity(const fe25519 *x)
{
fe25519 t = *x;
fe25519_freeze(&t);
return (unsigned char)t.v[0] & 1;
}