fe25519_getparity.c 152 B

12345678
  1. #include "fe25519.h"
  2. unsigned char fe25519_getparity(const fe25519 *x)
  3. {
  4. fe25519 t = *x;
  5. fe25519_freeze(&t);
  6. return (unsigned char)t.v[0] & 1;
  7. }