| 1 | // linker define fe25519_invert |
| 2 | // linker use fe25519_pack |
| 3 | // linker use fe25519_unpack |
| 4 | |
| 5 | #include "crypto_pow_inv25519.h" |
| 6 | #include "fe25519.h" |
| 7 | |
| 8 | void fe25519_invert(fe25519 *r, const fe25519 *x) |
| 9 | { |
| 10 | unsigned char s[32]; |
| 11 | fe25519_pack(s,x); |
| 12 | crypto_pow_inv25519(s,s); |
| 13 | fe25519_unpack(r,s); |
| 14 | } |