Home
last modified time | relevance | path

Searched refs:fe25519 (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/private/
H A Ded25519_ref10.h13 typedef uint64_t fe25519[5]; typedef
15 typedef int32_t fe25519[10]; typedef
18 void fe25519_invert(fe25519 out, const fe25519 z);
19 void fe25519_frombytes(fe25519 h, const unsigned char *s);
20 void fe25519_tobytes(unsigned char *s, const fe25519 h);
44 fe25519 X;
45 fe25519 Y;
46 fe25519 Z;
50 fe25519 X;
51 fe25519 Y;
[all …]
H A Ded25519_ref10_fe_51.h11 fe25519_0(fe25519 h) in fe25519_0()
21 fe25519_1(fe25519 h) in fe25519_1()
33 fe25519_add(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_add()
53 fe25519_sub(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_sub()
93 fe25519_neg(fe25519 h, const fe25519 f) in fe25519_neg()
95 fe25519 zero; in fe25519_neg()
109 fe25519_cmov(fe25519 f, const fe25519 g, unsigned int b) in fe25519_cmov()
146 fe25519_cswap(fe25519 f, fe25519 g, unsigned int b) in fe25519_cswap()
192 fe25519_copy(fe25519 h, const fe25519 f) in fe25519_copy()
213 fe25519_isnegative(const fe25519 f) in fe25519_isnegative()
[all …]
H A Ded25519_ref10_fe_25_5.h11 fe25519_0(fe25519 h) in fe25519_0()
21 fe25519_1(fe25519 h) in fe25519_1()
41 fe25519_add(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_add()
79 fe25519_sub(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_sub()
115 fe25519_neg(fe25519 h, const fe25519 f) in fe25519_neg()
148 fe25519_cmov(fe25519 f, const fe25519 g, unsigned int b) in fe25519_cmov()
198 fe25519_cswap(fe25519 f, fe25519 g, unsigned int b) in fe25519_cswap()
274 fe25519_copy(fe25519 h, const fe25519 f) in fe25519_copy()
308 fe25519_isnegative(const fe25519 f) in fe25519_isnegative()
326 fe25519_iszero(const fe25519 f) in fe25519_iszero()
[all …]
/freebsd/crypto/openssh/
H A Ded25519.c72 #define fe25519 crypto_sign_ed25519_ref_fe25519 macro
94 fe25519; typedef
96 static void fe25519_freeze(fe25519 *r);
98 static void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
100 static void fe25519_pack(unsigned char r[32], const fe25519 *x);
102 static int fe25519_iszero(const fe25519 *x);
104 static int fe25519_iseq_vartime(const fe25519 *x, const fe25519 *y);
106 static void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b);
108 static void fe25519_setone(fe25519 *r);
110 static void fe25519_setzero(fe25519 *r);
[all …]
H A Ded25519.sh76 */crypto_sign/ed25519/ref/fe25519.*)
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/
H A Dx25519_ref10.c58 fe25519 x1; in crypto_scalarmult_curve25519_ref10()
59 fe25519 x2; in crypto_scalarmult_curve25519_ref10()
60 fe25519 z2; in crypto_scalarmult_curve25519_ref10()
61 fe25519 x3; in crypto_scalarmult_curve25519_ref10()
62 fe25519 z3; in crypto_scalarmult_curve25519_ref10()
63 fe25519 tmp0; in crypto_scalarmult_curve25519_ref10()
64 fe25519 tmp1; in crypto_scalarmult_curve25519_ref10()
122 edwards_to_montgomery(fe25519 montgomeryX, const fe25519 edwardsY, const fe25519 edwardsZ) in edwards_to_montgomery()
124 fe25519 tempX; in edwards_to_montgomery()
125 fe25519 tempZ; in edwards_to_montgomery()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/
H A Dconstants.h2 static const fe25519 d = {
9 static const fe25519 d2 = {
14 static const fe25519 sqrtm1 = {
19 static const fe25519 curve25519_A = {
H A Dfe.h6 fe25519_frombytes(fe25519 h, const unsigned char *s) in fe25519_frombytes()
25 fe25519_reduce(fe25519 h, const fe25519 f) in fe25519_reduce()
102 fe25519_tobytes(unsigned char *s, const fe25519 h) in fe25519_tobytes()
104 fe25519 t; in fe25519_tobytes()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/
H A Dconstants.h2 static const fe25519 d = {
9 static const fe25519 d2 = {
13 static const fe25519 sqrtm1 = {
18 static const fe25519 curve25519_A = {
H A Dfe.h6 fe25519_frombytes(fe25519 h, const unsigned char *s) in fe25519_frombytes()
100 fe25519_reduce(fe25519 h, const fe25519 f) in fe25519_reduce()
183 fe25519_tobytes(unsigned char *s, const fe25519 h) in fe25519_tobytes()
185 fe25519 t; in fe25519_tobytes()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/
H A Ded25519_ref10.c54 fe25519_invert(fe25519 out, const fe25519 z) in fe25519_invert()
56 fe25519 t0; in fe25519_invert()
57 fe25519 t1; in fe25519_invert()
58 fe25519 t2; in fe25519_invert()
59 fe25519 t3; in fe25519_invert()
112 fe25519_pow22523(fe25519 out, const fe25519 z) in fe25519_pow22523()
114 fe25519 t0; in fe25519_pow22523()
115 fe25519 t1; in fe25519_pow22523()
116 fe25519 t2; in fe25519_pow22523()
173 fe25519 t0; in ge25519_add()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/
H A Dkeypair.c54 fe25519 x; in crypto_sign_ed25519_pk_to_curve25519()
55 fe25519 one_minus_y; in crypto_sign_ed25519_pk_to_curve25519()