On Wed, 2 May 2001, Tavin Cole <tavin at mailandnews.com> wrote:

> The 21st byte in freenet keys contains a value equal to the smallest power of
> 2 which is _larger_ than the PartSize of the data.  For CHKs the PartSize is
> the larger of 16364 (sic) and (plain file length)/20.  For all other keys the
> PartSize is the length of the encrypted file plus control bytes.
> 
> When keys are verified, the PartSize is pulled from the Storables and if not
> found, it is set equal to the total length as above.  Then the PartSize is
> checked against that 21st byte to make sure the 21st byte is greater than or
> equal to the PartSize.
> 
> So if the PartSize is exactly a power of 2, that 21st byte is one larger than
> it needs to be.  Why?

Happily, this isn't true in libfreenet.

...I do seem to have been very confused when I wrote the comment
preceding my correct code, however.

-S

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl
>From - Sun May  6 15:04:50 2001
Return-Path: <devl-admin at freenetproject.org>
Received: from hawk.freenetproject.org (postfix@[4.18.42.11])
        by funky.danky.com (8.9.3/8.8.7) with ESMTP id LAA18627
        for <danello at danky.com>; Thu, 3 May 2001 11:53:40 -0400
Received: from hawk.freenetproject.org (localhost [127.0.0.1])
        by hawk.freenetproject.org (Postfix) with ESMTP
        id 295AD5816C; Thu,  3 May 2001 09:34:03 -0700 (PDT)
Delivered-To: devl at freenetproject.org
Received: from VANHALEN.therapyexpert.com (unknown [64.244.27.157])
        by hawk.freenetproject.org (Postfix) with ESMTP id AB27C57FFA
        for <devl at freenetproject.org>; Thu,  3 May 2001 09:33:48 -0700 (PDT)
Received: by VANHALEN.therapyexpert.com with Internet Mail Service (5.5.2650.21)
        id <JYYMQ61M>; Thu, 3 May 2001 12:28:35 -0400
Message-ID: <A1EFC3D0B561844C8A3F667AC0D22F790E1FDF at 
VANHALEN.therapyexpert.com>
From: Russell Cagle <[email protected]>
To: "'devl at freenetproject.org'" <devl at freenetproject.org>
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
        charset="iso-8859-1"
Subject: [freenet-devl] Freenet Routing Ignores Physical Routing

Reply via email to