Home
last modified time | relevance | path

Searched refs:fe25519_sub (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/
H A Dx25519_ref10.c92 fe25519_sub(tmp0, x3, z3); in crypto_scalarmult_curve25519_ref10()
93 fe25519_sub(tmp1, x2, z2); in crypto_scalarmult_curve25519_ref10()
101 fe25519_sub(z2, z3, z2); in crypto_scalarmult_curve25519_ref10()
103 fe25519_sub(tmp1, tmp1, tmp0); in crypto_scalarmult_curve25519_ref10()
128 fe25519_sub(tempZ, edwardsZ, edwardsY); in edwards_to_montgomery()
/freebsd/crypto/openssh/
H A Ded25519.c84 #define fe25519_sub crypto_sign_ed25519_ref_fe25519_sub macro
118 static void fe25519_sub(fe25519 *r, const fe25519 *x, const fe25519 *y);
293 fe25519_sub(r, r, &t); in fe25519_neg()
303 static void fe25519_sub(fe25519 *r, const fe25519 *x, const fe25519 *y) in fe25519_sub() function
1676 fe25519_sub(&a, &r->y, &r->x); /* A = (Y1-X1)*(Y2-X2) */ in ge25519_mixadd2()
1678 fe25519_sub(&t1, &q->y, &q->x); in ge25519_mixadd2()
1682 fe25519_sub(&e, &b, &a); /* E = B-A */ in ge25519_mixadd2()
1687 fe25519_sub(&f, &d, &c); /* F = D-C */ in ge25519_mixadd2()
1699 fe25519_sub(&a, &p->y, &p->x); /* A = (Y1-X1)*(Y2-X2) */ in add_p1p1()
1700 fe25519_sub(&t, &q->y, &q->x); in add_p1p1()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/
H A Ded25519_ref10.c176 fe25519_sub(r->Y, p->Y, p->X); in ge25519_add()
182 fe25519_sub(r->X, r->Z, r->Y); in ge25519_add()
185 fe25519_sub(r->T, t0, r->T); in ge25519_add()
247 fe25519_sub(u, u, h->Z); /* u = y^2-1 */ in ge25519_frombytes()
262 fe25519_sub(m_root_check, vxx, u); /* vx^2-u */ in ge25519_frombytes()
289 fe25519_sub(u, u, h->Z); /* u = y^2-1 */ in ge25519_frombytes_negate_vartime()
304 fe25519_sub(m_root_check, vxx, u); /* vx^2-u */ in ge25519_frombytes_negate_vartime()
331 fe25519_sub(r->Y, p->Y, p->X); in ge25519_madd()
336 fe25519_sub(r->X, r->Z, r->Y); in ge25519_madd()
339 fe25519_sub(r->T, t0, r->T); in ge25519_madd()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/
H A Dkeypair.c63 fe25519_sub(one_minus_y, one_minus_y, A.Y); in crypto_sign_ed25519_pk_to_curve25519()
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/private/
H A Ded25519_ref10_fe_51.h53 fe25519_sub(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_sub() function
98 fe25519_sub(h, zero, f); in fe25519_neg()
H A Ded25519_ref10_fe_25_5.h79 fe25519_sub(fe25519 h, const fe25519 f, const fe25519 g) in fe25519_sub() function