Skip to content

Commit

Permalink
get param order right
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed Oct 3, 2024
1 parent da0c934 commit af75c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/dhutil/dhutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit af75c87

Please sign in to comment.