Skip to content

Commit bec4e5e

Browse files
authored
smp: reduce max message sizes (#1318)
1 parent 24ded9e commit bec4e5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Simplex/Messaging/Agent/Protocol.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,14 @@ supportedSMPAgentVRange = mkVersionRange minSupportedSMPAgentVersion currentSMPA
277277
e2eEncConnInfoLength :: VersionSMPA -> PQSupport -> Int
278278
e2eEncConnInfoLength v = \case
279279
-- reduced by 3726 (roughly the increase of message ratchet header size + key and ciphertext in reply link)
280-
PQSupportOn | v >= pqdrSMPAgentVersion -> 11122
281-
_ -> 14848
280+
PQSupportOn | v >= pqdrSMPAgentVersion -> 11106
281+
_ -> 14832
282282

283283
e2eEncAgentMsgLength :: VersionSMPA -> PQSupport -> Int
284284
e2eEncAgentMsgLength v = \case
285285
-- reduced by 2222 (the increase of message ratchet header size)
286-
PQSupportOn | v >= pqdrSMPAgentVersion -> 13634
287-
_ -> 15856
286+
PQSupportOn | v >= pqdrSMPAgentVersion -> 13618
287+
_ -> 15840
288288

289289
-- | SMP agent event
290290
type ATransmission = (ACorrId, AEntityId, AEvt)

0 commit comments

Comments
 (0)