On Wed, 2 May 2001, Tavin Cole <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl