Hello,

As an expected task for GSOC (discussed on IRC) I worked on the JCA
implementation for encryption.
Here is what I have done-

1. Created JCACipher implements Block Cipher.
2. Added negtype = 8
3. For negtype = 8 use new JCACipher object instead of new Rijndael object
4. Changed other methods in FNPPacketMangler to accept the new new link type

I needed to go through this paper to understand what JFK was all about
http://www.wisdom.weizmann.ac.il/~reingold/publications/jfk-tissec.pdf

What I am not sure of is that the method computeJFKsharedKey is used
by my cipher class too to generate the SecretKey required, but should
I use the JCA key generator to do so? That should not be a problem.

I am not sure if this is what nextgens had in mind.
But currently I have tested two nodes running in darknet mode, and
they were able to connect to each other and send messages. Also I used
the debugger to see if negtype = 8 was present.

I also ran another old node for which negtype=7 worked normally
(backward compatible). I hope this is what you were expecting. Here is
the patch, but I suppose you want me to send a pull request? I ll do
that too.

Thank you,
Chetan

Attachment: jca.patch
Description: Binary data

_______________________________________________
Devl mailing list
Devl@freenetproject.org
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to