[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [minion-cvs] Add comment suggesting a solution for zlib bombing
- To: mixminion-dev@freehaven.net
- Subject: Re: [minion-cvs] Add comment suggesting a solution for zlib bombing
- From: Zooko <zooko@zooko.com>
- Date: Tue, 07 Jan 2003 09:56:48 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: mixminion-dev-outgoing@seul.org
- Delivered-to: mixminion-dev@seul.org
- Delivery-date: Tue, 07 Jan 2003 10:01:30 -0500
- In-reply-to: Message from Nick Mathewson <nickm@alum.mit.edu> of "29 Dec 2002 14:36:38 EST." <1041190597.19413.14.camel@h00104b6bfa23.ne.client2.attbi.com>
- References: <20021220235242.8314F33C68@moria.seul.org> <E18QYr1-00007A-00@localhost> <1041190597.19413.14.camel@h00104b6bfa23.ne.client2.attbi.com>
- Reply-to: mixminion-dev@freehaven.net
- Sender: owner-mixminion-dev@freehaven.net
Nick wrote:
>
> I can think of two options:
> 1. If you're using a specialized exit module (not SMTP), that exit
> module can have its own anti-bombing defenses. [Most services
> that use Mixminion as a transport layer should probably do this;
> MMTP provides far better security guarantees than does SMTP.]
> 2. You can precompress _all_ data before feeding it to Mixminion.
> Mixminion will try to compress it a second time, but the
> compression factor will be very low. This might sound wasteful,
> but in practise it adds less than 0.7% to the cost of generating
> an 8-hop message.
> 3. If you receive a message that you don't recognize as valid for
> your protocol, try uncompressing it.
I'm still not understanding what the programmable API would look like.
I suppose there is a function like "mixminion.send(msg, recip)", and perhaps it
has a comment: "@raises TooCompressableException: if len(msg) > 20 KBytes and
msg compresses to less than 1/20th of its original size".
If we choose option #2, when this leads me to think there ought to be a
higher-layer API "mixminion.compressed_send(msg, recip)", which compresses and
then calls mixminion.send()... ?
Regards,
Zooko