| 1 | // 20240926 djb: use cryptoint |
| 2 | |
| 3 | // linker define fe25519_getparity |
| 4 | // linker use fe25519_freeze |
| 5 | |
| 6 | #include "fe25519.h" |
| 7 | #include "crypto_uint8.h" |
| 8 | |
| 9 | unsigned char fe25519_getparity(const fe25519 *x) |
| 10 | { |
| 11 | fe25519 t = *x; |
| 12 | fe25519_freeze(&t); |
| 13 | return crypto_uint8_bottombit_01(t.v[0]); |
| 14 | } |