On Fri, May 04, 2001 at 12:04:03PM -0500, Scott G. Miller wrote: > > > > Why not? It's exactly the same situation as putting it at the beginning > > of the document itself, we're just moving it a few bytes earlier in > > the message. > Oh, you mean the key. The key has to go absolutely first in the > decryption/encryption, otherwise you don't have an IV and an IV is a > requirement for a feedback cipher.
Scott: Can we or can we not place the 2 bytes of the crypto key length followed by the X bytes of the crypto key somewhere other than the beginning of the trailing field? If you look at the Freenet.client.Document.read() methods, they set up the BlockCipher, initialize it with the crypto key, then set up a new CipherInputStream with the readIV parameter == false. So it would appear the IV is being left at whatever it defaults to when you do a new PCFBMode(c) -- all zeroes? > > > Thats not necessary, you can just throw random bytes in the message's > > > trailing field. > > > > Ah, but for CHKs the routing key is a function of the storables, and > > we want to do it in such a way as to encourage CHK collisions. > True. But you can use all zeros too if you want. That's not considered a weakness (known plaintext)? -- # tavin cole # # "The process of scientific discovery is, in effect, # a continual flight from wonder." # - Albert Einstein _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
