On Tue, May 08, 2001 at 03:21:26AM -0700, Adam Langley wrote:
> On Tue, May 08, 2001 at 12:24:34AM -0400, Tavin Cole wrote:
> > Well, this is how I'm doing it now:
> > 
> > CHK encryption key = make_key(hash(data))
> > 
> > i.e., NO padding.
> 
> Why?? This just makes the wrose design a world of pain.

It's exactly the opposite in Fred.

> > What doesn't make sense to me is using data+padding to generate
> > the encryption key.  It would make the code unnecessarily complicated,
> > without serving any purpose.
> 
> No, because make_key(hash(data+padding)) means that the padding fits nicely 
> intpo a different layer.

The best I can do is show you the relevant code in Fred and why it would
be a needless PITA.  I'll contact you off list.  Or have a look at
Freenet.client.ClientCHK (makeCryptoKey() and the encode() methods),
and Freenet.client.AbstractClientKey (the encode() methods).

I'm a bit curious what is so different about your design that it inverts
what works easiest in Fred..

-- 

# 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

Reply via email to