diff options
Diffstat (limited to 'src/noise_helpers.go')
-rw-r--r-- | src/noise_helpers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noise_helpers.go b/src/noise_helpers.go index df25011..eadbc07 100644 --- a/src/noise_helpers.go +++ b/src/noise_helpers.go @@ -81,6 +81,6 @@ func (sk *NoisePrivateKey) publicKey() (pk NoisePublicKey) { func (sk *NoisePrivateKey) sharedSecret(pk NoisePublicKey) (ss [NoisePublicKeySize]byte) { apk := (*[NoisePublicKeySize]byte)(&pk) ask := (*[NoisePrivateKeySize]byte)(sk) - curve25519.ScalarMult(&ss, apk, ask) + curve25519.ScalarMult(&ss, ask, apk) return ss } |