From bec4e5e038629bcafc990da3a1e73b72b790c310 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 14 Sep 2024 17:34:29 +0100 Subject: [PATCH] smp: reduce max message sizes (#1318) --- src/Simplex/Messaging/Agent/Protocol.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Simplex/Messaging/Agent/Protocol.hs b/src/Simplex/Messaging/Agent/Protocol.hs index 13e5011a2..bfa6e46b0 100644 --- a/src/Simplex/Messaging/Agent/Protocol.hs +++ b/src/Simplex/Messaging/Agent/Protocol.hs @@ -277,14 +277,14 @@ supportedSMPAgentVRange = mkVersionRange minSupportedSMPAgentVersion currentSMPA e2eEncConnInfoLength :: VersionSMPA -> PQSupport -> Int e2eEncConnInfoLength v = \case -- reduced by 3726 (roughly the increase of message ratchet header size + key and ciphertext in reply link) - PQSupportOn | v >= pqdrSMPAgentVersion -> 11122 - _ -> 14848 + PQSupportOn | v >= pqdrSMPAgentVersion -> 11106 + _ -> 14832 e2eEncAgentMsgLength :: VersionSMPA -> PQSupport -> Int e2eEncAgentMsgLength v = \case -- reduced by 2222 (the increase of message ratchet header size) - PQSupportOn | v >= pqdrSMPAgentVersion -> 13634 - _ -> 15856 + PQSupportOn | v >= pqdrSMPAgentVersion -> 13618 + _ -> 15840 -- | SMP agent event type ATransmission = (ACorrId, AEntityId, AEvt)