From 8fbe4ceb642fc8bab1cdec7d7e5c1627989f8244 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 23 Apr 2020 15:40:50 +0200 Subject: [PATCH] Fix argument order --- 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 2356de7f..b08c6ba8 100644 --- a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +++ b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c @@ -2540,7 +2540,7 @@ ge25519_elligator2(unsigned char s[32], const fe25519 r, const unsigned char x_s fe25519_sq2(rr2, r); rr2[0]++; fe25519_invert(rr2, rr2); - fe25519_mul32(x, curve25519_A[0], rr2); + fe25519_mul32(x, rr2, curve25519_A[0]); fe25519_neg(x, x); fe25519_sq(x2, x);