1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00

Fix comment in ristretto255_elligator (#1052)

This commit is contained in:
Frank Denis 2021-04-21 16:47:07 +02:00
parent 7168944f16
commit 8aedf47338

View File

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