| 1 |
// linker define fe_invert |
| 2 |
// linker use fe_tobytes |
| 3 |
// linker use fe_frombytes |
| 4 |
|
| 5 |
#include "crypto_pow_inv25519.h" |
| 6 |
#include "fe.h" |
| 7 |
|
| 8 |
void fe_invert(fe out,const fe z) |
| 9 |
{ |
| 10 |
unsigned char r[32]; |
| 11 |
fe_tobytes(r,z); |
| 12 |
crypto_pow_inv25519(r,r); |
| 13 |
fe_frombytes(out,r); |
| 14 |
} |