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