From af75c870bf7add06b0c6cb62078482fa2aea452d Mon Sep 17 00:00:00 2001 From: "Scott G. Miller" Date: Thu, 3 Oct 2024 14:50:12 -0500 Subject: [PATCH] get param order right --- helper/dhutil/dhutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/dhutil/dhutil.go b/helper/dhutil/dhutil.go index fd20f89d5021..127bb4b02504 100644 --- a/helper/dhutil/dhutil.go +++ b/helper/dhutil/dhutil.go @@ -36,7 +36,7 @@ func GeneratePublicPrivateKey() ([]byte, []byte, error) { return nil, nil, err } - public, err := curve25519.X25519(curve25519.Basepoint, scalar) + public, err := curve25519.X25519(scalar, curve25519.Basepoint) if err != nil { return nil, nil, err }