From 8aedf4733884a25434b5c17c79c7e7dee27e6eb0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 21 Apr 2021 16:47:07 +0200 Subject: [PATCH] Fix comment in ristretto255_elligator (#1052) --- src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c index 9624f80c..425b5501 100644 --- a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +++ b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c @@ -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) */