Fix comment in ristretto255_elligator (#1052)
This commit is contained in:
parent
7168944f16
commit
8aedf47338
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user