> SimplifiedClient does instantiate a ClientCHK (using its own method, > not ClientUtil). It uses the ClientCHK constructor that takes a stream > and a length as arguments. It passes the stream and length of the data > Bucket. So if the data Bucket's empty.. InsertClient does this too > (the relevant code is identical).
That's because I copied it. Sorry for being misinformative. I suppose what I should say is that code SHOULD be in a library since I just pasted it anyway. > Any two non-identical files will have different CHKs when inserted. The > situation we have now is that two different files with the same data section > but differing metadata will have the same encryption key for the CHK. The > 2 CHKs will still be different. This is because for some strange reason > the encryption key is generated from the data section only instead of the > entire file. So are you saying that the CHKs for two identical files with differing metadata will be different? Because the point is that the CHKs for two identical files with differing metadata should be the same unless they're control documents, in which case they should be different, which is the fundamental problem here. _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
