* Matthew Toseland <toad at amphibian.dyndns.org> [2007-09-21 13:14:42]:

> On Tuesday 11 September 2007 19:54, you wrote:
> > Author: nextgens
> > Date: 2007-09-11 18:54:26 +0000 (Tue, 11 Sep 2007)
> > New Revision: 15126
> > 
> > Modified:
> >    branches/freenet-jfk/src/freenet/crypt/SHA256.java
> >    branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
> > Log:
> > * Reduce the size of HKr
> > * Compute the HMAC using SHA256
> > 
> > Modified: branches/freenet-jfk/src/freenet/crypt/SHA256.java
> > ===================================================================
> > --- branches/freenet-jfk/src/freenet/crypt/SHA256.java      2007-09-10 
> > 23:06:21 
> UTC (rev 15125)
> > +++ branches/freenet-jfk/src/freenet/crypt/SHA256.java      2007-09-11 
> > 18:54:26 
> UTC (rev 15126)
> > @@ -415,4 +415,8 @@
> >     public static int getDigestLength() {
> >             return HASH_SIZE;
> >     }
> > +   
> > +   public static Digest getInstance() {
> > +           return new SHA256();
> > +   }
> 
> I don't understand what this is for. Where do we use SHA256 directly? 
> Normally 
> we use a static factory method to get a MessageDigest ... ?

The hashmac code we are using takes a Digest as input... I was assuming
that it was used somewhere else in the code and that we don't want to
change the API of JavaSha1

NextGen$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20070921/58f447f2/attachment.pgp>

Reply via email to