From 67e501f5c7fbe97588e584466a5ca235a9524ae0 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 4 Apr 2022 11:52:14 -0400 Subject: [PATCH] correct nonce for SessionCorfirmed part 2 --- libi2pd/SSU2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 2abb2d55..8c64a13e 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -444,6 +444,7 @@ namespace transport m_EphemeralKeys->Agree (S, sharedSecret); m_NoiseState->MixKey (sharedSecret); // decrypt part2 + memset (nonce, 0, 12); uint8_t * payload = buf + 64; std::vector decryptedPayload(len - 80); if (!i2p::crypto::AEADChaCha20Poly1305 (payload, len - 80, m_NoiseState->m_H, 32,