Use upstream's xchacha20poly1305

This commit is contained in:
Jason A. Donenfeld
2018-12-10 04:23:17 +01:00
parent 849fa400e9
commit 5ace0fdfe2
4 changed files with 5 additions and 288 deletions

View File

@@ -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
}