From 56b6de69624bffd56de3f74363f64b5eb28f239c Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 25 Mar 2022 17:57:59 -0400 Subject: [PATCH] correct header decryption for Data message --- libi2pd/SSU2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index f336ee80..746d5bce 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -530,7 +530,8 @@ namespace transport void SSU2Session::ProcessData (uint8_t * buf, size_t len) { Header header; - memcpy (header.buf, buf, 16); + header.ll[0] = m_SourceConnID; + memcpy (header.buf + 8, buf + 8, 8); header.ll[1] ^= CreateHeaderMask (m_KeyDataReceive + 32, buf + (len - 12)); if (header.h.type != eSSU2Data) {