| 1 |
/* |
| 2 |
This file is adapted from amd64-51/fe25519.h: |
| 3 |
'fe25519' is renamed as 'fe51'; |
| 4 |
All the redundant functions are removed; |
| 5 |
New function fe51_nsquare is introduced. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef FE51_H |
| 9 |
#define FE51_H |
| 10 |
|
| 11 |
#include "crypto_uint64.h" |
| 12 |
#include "fe51_namespace.h" |
| 13 |
|
| 14 |
typedef struct |
| 15 |
{ |
| 16 |
crypto_uint64 v[5]; |
| 17 |
} |
| 18 |
fe51; |
| 19 |
|
| 20 |
extern void fe51_pack(unsigned char *, const fe51 *); |
| 21 |
extern void fe51_mul(fe51 *, const fe51 *, const fe51 *); |
| 22 |
extern void fe51_nsquare(fe51 *, const fe51 *, int); |
| 23 |
extern void fe51_invert(fe51 *, const fe51 *); |
| 24 |
|
| 25 |
#endif |