Re: message size
Alexander Holler <[email protected]>
| Newsgroups | gmane.ietf.xmpp |
|---|---|
| Message-ID | <[email protected]> |
Am 06.03.2014 15:49, schrieb Kevin Smith: > On Thu, Mar 6, 2014 at 2:44 PM, Ashley Ward <[email protected]> wrote: >> On 6 Mar 2014, at 14:40, Kevin Smith <[email protected]> wrote: >>> On Thu, Mar 6, 2014 at 2:35 PM, Ashley Ward <[email protected]> wrote: >>>> On 6 Mar 2014, at 14:28, Dave Cridland <[email protected]> wrote: >>>> >>>>> You're saying to include, pre-encrypt, something like <spacer:junk xmlns:spacer='urn:...'>123465</spacer> in the plaintext order to defeat message size analysis of the ciphertext? >>>> >>>> It's XML - you could always just use <!-- --> comments or whitespace. >>> >>> Comments are slightly problematic, on account of being illegal. >> >> True - I often forget that XMPP isn't entirely XML compliant! > > The stream isn't a real XML document (stream restarts break this) but > not allowing comments doesn't stop it being XML, just a subset. And just using whitespace is the most elegant solution. No necessary changes and no obvious problems. So instead of <message>foobar</message> using <message >foobar</message> or e.g. <message >foobar</message > or something similiar is imho the most preferable way to add unused plaintext. Regards, Alexander Holler