aboutsummaryrefslogtreecommitdiff
path: root/device/noise-protocol.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-28 14:44:51 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-28 14:45:53 +0100
commitd4725bc45685187088c84234a6d2be396a1373e5 (patch)
tree8f9004104f4cde6589380d17793e9412b6b67742 /device/noise-protocol.go
parent1b092ce584cbee0f86f3e25b5498870c8ca96652 (diff)
downloadwireguard-go-d4725bc45685187088c84234a6d2be396a1373e5.tar.gz
wireguard-go-d4725bc45685187088c84234a6d2be396a1373e5.zip
device: the psk is not a chapoly key
It's a separate type of key that gets hashed into the chain. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/noise-protocol.go')
-rw-r--r--device/noise-protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/noise-protocol.go b/device/noise-protocol.go
index 5669381..1068701 100644
--- a/device/noise-protocol.go
+++ b/device/noise-protocol.go
@@ -121,7 +121,7 @@ type Handshake struct {
mutex sync.RWMutex
hash [blake2s.Size]byte // hash value
chainKey [blake2s.Size]byte // chain key
- presharedKey NoiseSymmetricKey // psk
+ presharedKey NoisePresharedKey // psk
localEphemeral NoisePrivateKey // ephemeral secret key
localIndex uint32 // used to clear hash-table
remoteIndex uint32 // index for sending