Hi for all,
the purpose is to implement a small lib/crypto.py module that could be 
usefull  for several jobs, such as the ANDNA cryptographic (3.4 of 
ANDNA.pdf).
In this specific case we need to authenticate the hostname registration 
and hname update requests.

Looking into python 2.6.1 documentation i've found some stuff that 
regards SSL cryptographic.
http://docs.python.org/library/ssl.html

This is a module 'ssl' with a class SSLSocket that extends a Socket 
object to encrypt the communication.
We could think to wrap the socket when the node is making an ANDNA 
registration or update, then when finished, we could unwrap that socket, 
but using some keys previously generated in another way
(ssl module doesn't have function to generate keys such as in crypto.[ch]).

Alternatively we could work directly pyOpenSSL, that is very pretty and 
complete.
http://pyopenssl.sourceforge.net/pyOpenSSL.html/

Are there other libs or ideas?
Do we need further APIs from that in crypto.h?

Thanks, Francesco
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku

Reply via email to