aboutsummaryrefslogtreecommitdiffstats
path: root/noise-protocol.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-10 04:23:17 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-10 04:23:17 +0100
commit5ace0fdfe237b2062c060fbe30d6fb40965fb1b9 (patch)
tree4b0a333a1b85a10021b147a1ebf164c391a6dbae /noise-protocol.go
parentUpdate go x/ libraries (diff)
downloadwireguard-go-5ace0fdfe237b2062c060fbe30d6fb40965fb1b9.tar.xz
wireguard-go-5ace0fdfe237b2062c060fbe30d6fb40965fb1b9.zip
Use upstream's xchacha20poly1305
Diffstat (limited to 'noise-protocol.go')
-rw-r--r--noise-protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/noise-protocol.go b/noise-protocol.go
index cc85cce..0686a11 100644
--- a/noise-protocol.go
+++ b/noise-protocol.go
@@ -89,7 +89,7 @@ type MessageTransport struct {
type MessageCookieReply struct {
Type uint32
Receiver uint32
- Nonce [24]byte
+ Nonce [chacha20poly1305.NonceSizeX]byte
Cookie [blake2s.Size128 + poly1305.TagSize]byte
}