Browse Source

Fix comment in ristretto255_elligator (#1052)

tis
P.I.E. Security Team 3 years ago
committed by GitHub
parent
commit
710b2d3963
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c

2
src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c

@ -2937,7 +2937,7 @@ ristretto255_elligator(ge25519_p3 *p, const fe25519 t)
fe25519_mul(u, u, ed25519_onemsqd);/* u = (r+1)*(1-d^2) */
fe25519_1(c);
fe25519_neg(c, c); /* c = -1 */
fe25519_add(rpd, r, ed25519_d); /* rpd = r*d */
fe25519_add(rpd, r, ed25519_d); /* rpd = r+d */
fe25519_mul(v, r, ed25519_d); /* v = r*d */
fe25519_sub(v, c, v); /* v = c-r*d */
fe25519_mul(v, v, rpd); /* v = (c-r*d)*(r+d) */

Loading…
Cancel
Save