4 #define sc25519 crypto_sign_edwards25519sha512batch_sc25519
5 #define sc25519_from32bytes crypto_sign_edwards25519sha512batch_sc25519_from32bytes
6 #define sc25519_from64bytes crypto_sign_edwards25519sha512batch_sc25519_from64bytes
7 #define sc25519_to32bytes crypto_sign_edwards25519sha512batch_sc25519_to32bytes
8 #define sc25519_pack crypto_sign_edwards25519sha512batch_sc25519_pack
9 #define sc25519_getparity crypto_sign_edwards25519sha512batch_sc25519_getparity
10 #define sc25519_setone crypto_sign_edwards25519sha512batch_sc25519_setone
11 #define sc25519_setzero crypto_sign_edwards25519sha512batch_sc25519_setzero
12 #define sc25519_neg crypto_sign_edwards25519sha512batch_sc25519_neg
13 #define sc25519_add crypto_sign_edwards25519sha512batch_sc25519_add
14 #define sc25519_sub crypto_sign_edwards25519sha512batch_sc25519_sub
15 #define sc25519_mul crypto_sign_edwards25519sha512batch_sc25519_mul
16 #define sc25519_square crypto_sign_edwards25519sha512batch_sc25519_square
17 #define sc25519_invert crypto_sign_edwards25519sha512batch_sc25519_invert
19 #include "crypto_uint32.h"
25 void sc25519_from32bytes(sc25519
*r
, const unsigned char x
[32]);
27 void sc25519_from64bytes(sc25519
*r
, const unsigned char x
[64]);
29 void sc25519_to32bytes(unsigned char r
[32], const sc25519
*x
);
31 void sc25519_pack(unsigned char r
[32], const sc25519
*x
);
33 unsigned char sc25519_getparity(const sc25519
*x
);
35 void sc25519_setone(sc25519
*r
);
37 void sc25519_setzero(sc25519
*r
);
39 void sc25519_neg(sc25519
*r
, const sc25519
*x
);
41 void sc25519_add(sc25519
*r
, const sc25519
*x
, const sc25519
*y
);
43 void sc25519_sub(sc25519
*r
, const sc25519
*x
, const sc25519
*y
);
45 void sc25519_mul(sc25519
*r
, const sc25519
*x
, const sc25519
*y
);
47 void sc25519_square(sc25519
*r
, const sc25519
*x
);
49 void sc25519_invert(sc25519
*r
, const sc25519
*x
);