-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I know CHKs aren't supposed to have metadata attached with them, but I got 
different values when I tried to use the GenerateCHK FCP command with 
MetadataLength set:

- ----
[timm~/proj/freenet]$ ./rawfcp.pl
GenerateCHK
DataLength=3
Data
Hi
Success
URI=freenet:CHK at yerQTBExekW0u1I29HChy6iAMK8KAwI,X8-~7Y4p6nRyilKfjQFlEw
EndMessage

[timm~/proj/freenet]$ ./rawfcp.pl
GenerateCHK
DataLength=3
MetadataLength=3
Data
Hi
Success
URI=freenet:CHK at ZemjYqZbP3WeolYJubWDUCIoiu8KAwI,X8-~7Y4p6nRyilKfjQFlEw
EndMessage
[timm~/proj/freenet]$
- ----

(rawfcp.pl is just a little Perl script I wrote to send the 0x00000002 at the 
beginning of an FCP connection so I can send FCP manually).

Notice that DataLength == 3, since there is a \n after the 'Hi'.  When I set 
MetadataLength == 3, the node cut me off before I could go any further.  
However, the CHK value is different.

Just to make sure, I tried again without setting MetadataLength:

- ----
[timm~/proj/freenet]$ ./rawfcp.pl
GenerateCHK
DataLength=3
Data
Hi
Success
URI=freenet:CHK at yerQTBExekW0u1I29HChy6iAMK8KAwI,X8-~7Y4p6nRyilKfjQFlEw
EndMessage

[timm~/proj/freenet]$
- ----

Yup, same value as before.

- -- 
Timm Murray
GPG Key Fingerprint: 32E9 DBAF 8089 ECB7 696D  560B AA9B 9E29 C69C 7CB4
- ----------
Those who do not understand Unix are condemned to reinvent it, poorly.
                --Henry Spencer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj3DJ60ACgkQqpueKcacfLSdxgCgva/DHQL1aCfzUuyxlsct4sFc
Sz0AnA83XHc22YbZOyPBwOcKQmSg21P0
=LRCE
-----END PGP SIGNATURE-----


_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to