https://xmpp.org/extensions/xep-0420.html#affix_elements
> Prevent known ciphertext and message length correlation attacks. The content of this element is a randomly generated sequence of random length between 0 and 200 characters. TODO: sane boundaries?
Hmm, so I should change rpad to '200-messagelength%200' 🤔
The old one got replaced with the new one because the old server was extremely old.
Link Mauve
It isn’t in use any longer (AFAIK).
pep.
Wasn't it destroyed?
nephelehas joined
Link Mauve
I don’t know.
COM8has joined
COM8has left
nephelehas left
nephelehas joined
atomicwatchhas left
Martin
About the first question, don't you think 200 chars is pretty long for the rpad?
Alexhas left
atomicwatchhas joined
nephelehas left
debaclehas joined
Alexhas joined
jonas’
Martin, mind that when generating the padding, you need to count utf-8 bytes, not unicode codepoints btw✎
jonas’
Martin, mind that when generating the padding based on the message length, you need to count utf-8 bytes, not unicode codepoints btw ✏
msavoritiashas left
msavoritiashas joined
amee2khas joined
jubalhhas joined
Wojtekhas joined
amee2khas left
COM8has joined
COM8has left
selurveduhas left
nephelehas joined
nephelehas left
Martin
He, i think I have to change that.
nephelehas joined
nephelehas left
marc0shas left
nephelehas joined
marc0shas joined
marc0shas left
marc0shas joined
nephelehas left
jubalhhas left
nephelehas joined
Dele Olajidehas joined
nephelehas left
nephelehas joined
nephelehas left
nephelehas joined
Martin
Should be OK now:
> go build . && echo "â˜"|./go-sendxmpp --ox martin@mdosch.de
> Message length: 3
> Rpad length: 97
> Rpad: e1f49f122ccf5a860024a1eaabb8de9811d6d3a1ff89dc8f838d7b317c49f9011bea3dddf8f6bc4432c976947bbd42137cf25b870aad04680a0eda3d876bcdabb47b50a319f1ab87d4adcf460c4a98a91f9b25cf9b3150ccff1493960cbb72931e
But I think I rather stick with padding to a multiple of 100 as 200 seems a bit exaggerated…
marc0shas left
marc0shas joined
antranigvhas left
nephelehas left
antranigvhas joined
Matrix Traveler (bot)has left
homebeachhas left
homebeachhas joined
Matrix Traveler (bot)has joined
amee2khas joined
Laurahas left
amee2khas left
jubalhhas joined
Dele Olajidehas left
thomaslewishas joined
thomaslewishas left
Laurahas joined
Yagizаhas joined
marc0shas left
marc0shas joined
marc0shas left
marc0shas joined
marc0shas left
marc0shas joined
dezanthas joined
amee2khas joined
thomaslewishas joined
marc0shas left
marc0shas joined
thomaslewishas left
pulkomandyhas left
pasdesushihas left
nephelehas joined
nephelehas left
nephelehas joined
mhhas left
mhhas joined
PapaTutuWawahas left
nephelehas left
pasdesushihas joined
pulkomandyhas joined
nephelehas joined
nephelehas left
FireFlyhas left
pulkomandyhas left
thomaslewishas joined
thomaslewishas left
atomicwatchhas left
thomaslewishas joined
atomicwatchhas joined
antranigvhas left
amee2khas left
antranigvhas joined
Laurahas left
Laurahas joined
pulkomandyhas joined
Dele Olajidehas joined
pasdesushihas left
amee2khas joined
thomaslewishas left
thomaslewishas joined
thomaslewishas left
Link Mauvehas left
antranigvhas left
antranigvhas joined
Dele Olajidehas left
adxhas left
raghavgururajanhas joined
antranigvhas left
antranigvhas joined
adxhas joined
marmistrzhas joined
marchas left
Laurahas left
Wojtekhas left
Laurahas joined
PapaTutuWawahas joined
pasdesushihas joined
Wojtekhas joined
antranigvhas left
antranigvhas joined
marmistrzhas left
amee2khas left
stpeterhas joined
antranigvhas left
debaclehas left
Anton L. Å ijanechas left
antranigvhas joined
Anton L. Å ijanechas joined
TheCoffeMakerhas left
antranigvhas left
raghavgururajanhas left
TheCoffeMakerhas joined
antranigvhas joined
TheCoffeMakerhas left
TheCoffeMakerhas joined
Link Mauvehas joined
amee2khas joined
marchas joined
jgarthas joined
debaclehas joined
adxhas left
TheCoffeMakerhas left
larmahas joined
larmahas left
larmahas joined
dezanthas left
jgarthas left
jgarthas joined
selurveduhas joined
Wojtekhas left
Wojtekhas joined
amee2khas left
FireFlyhas joined
stpeterhas left
nephelehas joined
stpeterhas joined
marc0shas left
marc0shas joined
stpeterhas left
amee2khas joined
dezanthas joined
nephelehas left
TheCoffeMakerhas joined
marc0shas left
marc0shas joined
jgarthas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
xnamedhas left
marc0shas left
marc0shas joined
FireFlyhas left
FireFlyhas joined
marc0shas left
marc0shas joined
xnamedhas joined
jgarthas joined
nephelehas joined
nephelehas left
nephelehas joined
xnamedhas left
xnamedhas joined
nephelehas left
Wojtekhas left
antranigvhas left
marc0shas left
marc0shas joined
Laurahas left
thomaslewishas joined
marc0shas left
marc0shas joined
PapaTutuWawahas left
PapaTutuWawahas joined
thomaslewishas left
dezanthas left
jgarthas left
spectrumhas left
dezanthas joined
jubalhhas left
Yagizаhas left
Laurahas joined
spectrumhas joined
selurveduhas left
amee2khas left
nephelehas joined
PapaTutuWawahas left
amee2khas joined
nephelehas left
thomaslewishas joined
thomaslewishas left
thomaslewishas joined
selurveduhas joined
SouLhas left
SouLhas joined
thomaslewishas left
thomaslewishas joined
thomaslewishas left
Anton L. Å ijanechas left
Anton L. Å ijanechas joined
amee2khas left
amee2khas joined
jgarthas joined
nephelehas joined
lovetoxhas joined
nephelehas left
lovetox
i have a server, which when in muc, the muc reflection of the message has 2 stanza-id nodes
lovetox
one with a "by" attr of the muc jid, so archive of the muc
lovetox
one with a "by" attr of the account of the user who sent the message
lovetox
.. why why why
thomaslewishas joined
thomaslewishas left
marchas left
marchas joined
thomaslewishas joined
thomaslewishas left
lovetox
the spec is great about it
lovetox
everything is written like it allows multiple stanza id elements
cyrilhas joined
lovetox
but then in the last sentence
lovetox
The value of the 'by' attribute MUST be the XMPP address of the entity assigning the unique and stable stanza ID. For one-on-one messages the assigning entity is the account. In groupchats the assigning entity is the room.
lovetox
no .. the assigning entity is whatever is in the by attr and not necessarily the room or account