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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jca.patch
Type: application/octet-stream
Size: 7702 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20120402/276288f6/attachment.obj>

Reply via email to