some tweaks
[mkp224o.git] / ed25519 / amd64-51-30k / fe25519_getparity.c
bloba003ec8f54e797eef01fdb178879b4b197c9e0dd
1 #include "fe25519.h"
3 unsigned char fe25519_getparity(const fe25519 *x)
5 fe25519 t = *x;
6 fe25519_freeze(&t);
7 return (unsigned char)t.v[0] & 1;