12 #include "crypto_api.h"
14 #define fe25519 crypto_sign_ed25519_ref_fe25519
15 #define fe25519_freeze crypto_sign_ed25519_ref_fe25519_freeze
16 #define fe25519_unpack crypto_sign_ed25519_ref_fe25519_unpack
17 #define fe25519_pack crypto_sign_ed25519_ref_fe25519_pack
18 #define fe25519_iszero crypto_sign_ed25519_ref_fe25519_iszero
19 #define fe25519_iseq_vartime crypto_sign_ed25519_ref_fe25519_iseq_vartime
20 #define fe25519_cmov crypto_sign_ed25519_ref_fe25519_cmov
21 #define fe25519_setone crypto_sign_ed25519_ref_fe25519_setone
22 #define fe25519_setzero crypto_sign_ed25519_ref_fe25519_setzero
23 #define fe25519_neg crypto_sign_ed25519_ref_fe25519_neg
24 #define fe25519_getparity crypto_sign_ed25519_ref_fe25519_getparity
25 #define fe25519_add crypto_sign_ed25519_ref_fe25519_add
26 #define fe25519_sub crypto_sign_ed25519_ref_fe25519_sub
27 #define fe25519_mul crypto_sign_ed25519_ref_fe25519_mul
28 #define fe25519_square crypto_sign_ed25519_ref_fe25519_square
29 #define fe25519_invert crypto_sign_ed25519_ref_fe25519_invert
30 #define fe25519_pow2523 crypto_sign_ed25519_ref_fe25519_pow2523
38 void fe25519_freeze(fe25519 *r);
40 void fe25519_unpack(fe25519 *r,
const unsigned char x[32]);
42 void fe25519_pack(
unsigned char r[32],
const fe25519 *x);
44 int fe25519_iszero(
const fe25519 *x);
46 int fe25519_iseq_vartime(
const fe25519 *x,
const fe25519 *y);
48 void fe25519_cmov(fe25519 *r,
const fe25519 *x,
unsigned char b);
50 void fe25519_setone(fe25519 *r);
52 void fe25519_setzero(fe25519 *r);
54 void fe25519_neg(fe25519 *r,
const fe25519 *x);
56 unsigned char fe25519_getparity(
const fe25519 *x);
58 void fe25519_add(fe25519 *r,
const fe25519 *x,
const fe25519 *y);
60 void fe25519_sub(fe25519 *r,
const fe25519 *x,
const fe25519 *y);
62 void fe25519_mul(fe25519 *r,
const fe25519 *x,
const fe25519 *y);
64 void fe25519_square(fe25519 *r,
const fe25519 *x);
66 void fe25519_invert(fe25519 *r,
const fe25519 *x);
68 void fe25519_pow2523(fe25519 *r,
const fe25519 *x);