From 5ace0fdfe237b2062c060fbe30d6fb40965fb1b9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 10 Dec 2018 04:23:17 +0100 Subject: Use upstream's xchacha20poly1305 --- noise-protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'noise-protocol.go') 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 } -- cgit v1.2.3