| 1 |
/* |
| 2 |
This file is adapted from ref10/fe.h: |
| 3 |
All the redundant functions are removed. |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef FE_H |
| 7 |
#define FE_H |
| 8 |
|
| 9 |
#include "crypto_uint64.h" |
| 10 |
|
| 11 |
typedef crypto_uint64 fe[10]; |
| 12 |
|
| 13 |
/* |
| 14 |
fe means field element. |
| 15 |
Here the field is \Z/(2^255-19). |
| 16 |
An element t, entries t[0]...t[9], represents the integer |
| 17 |
t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9]. |
| 18 |
Bounds on each t[i] vary depending on context. |
| 19 |
*/ |
| 20 |
|
| 21 |
#define fe_frombytes CRYPTO_NAMESPACE(fe_frombytes) |
| 22 |
|
| 23 |
extern void fe_frombytes(fe, const unsigned char *); |
| 24 |
|
| 25 |
#endif |