On Sat, Apr 07, 2001 at 07:18:33PM -0400, Tavin Cole wrote:
> On Fri, Apr 06, 2001 at 06:31:27PM +0100, toad wrote:
> > I see what the apparent problem is now. Fred 0.3.8.1 uses the file content,
> > not including the metadata, to get the encryption key. This is a bug as has
> > been pointed out on the list recently (is there going to be a 0.3.8.2
> > soon?).
> > libfreenet does what Fred should, and will/soon will, do, i.e. it hashes the
> > whole file including metadata to get the encryption key. This is
> > incompatible
> > with 0.3.8.1, so means I can't use libfreenet to get the CHK of files I then
> > insert with Fred (specifically, GJ's PutFiles wrapper). I may be able to
> > patch
> > libfreenet to have an option for the broken fred behaviour, but it becomes
> > irrelevant when fred 0.3.8.2 comes out. More seriously, it means that we
> > have
> > an instant way to produce CHK collisions - put something in with the same
> > data+
> > metadata, but change the boundary byte from one to the other, and you get a
> > different CHK. Can be used for some interesting spoofing attacks...
>