Re: [viff-devel] Python bindings for NaCl

2008-09-04 Thread Martin Geisler
Adam Langley [EMAIL PROTECTED] writes:

 On Wed, Sep 3, 2008 at 1:41 AM, Martin Geisler [EMAIL PROTECTED] wrote:

 Okay. If you want to, you can get all the repository- and web-space
 you want on viff.dk. Or maybe you could put up the bindings on
 pypi?

 Thanks for the offer. I'm not sure where it'll end up at the moment.
 I often use code.google.com for these things.

Okay, that's another fine choice! I'm only concerned that we get
something out to the real world and not just in some locked SVN
repository somewhere...

 I think it would look great if NaCL and pyNaCL (if that is the
 right name?) would be put out there as small open source projects.
 Then we would actually have produced something concrete for others
 to use in the CACE project.

 Agreed. You just have to persuade Dan to use source control and host
 NaCl somewhere :)

Hmm... no version control?! grumble... :-)

Dan and Tanja: I'm sure you guys have plenty of hosting options
already, but just let me know if you would like NaCl to be hosted with
or near VIFF.

 From the sample above it looks exactly like I imagined: simple,
 straight forward, and with minimum fuzz!

 Thanks for the vote of confidence. I think NaCl gets paged into my
 brain tomorrow. I'll see if I can get the shared library support
 done.

Okay, sounds good. Then we'll have to see where we can make use of the
NaCl bindings first. We're currently using a total ad-hoc
pseudo-random function implementation which uses SHA-1 to generate
numbers. Replacing that by one of the stronger SHA variants supported
by NaCl might be an easy place to start:

  http://hg.viff.dk/viff/file/ff249565fa3a/viff/prss.py#l260

And then there is the Shamir sharing and recombination stuff here,
which requires fast bignum addition and multiplication:

  http://hg.viff.dk/viff/file/ff249565fa3a/viff/shamir.py

but I think Dan plans to make custom code for that.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
___
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk


Re: [viff-devel] Python bindings for NaCl

2008-09-04 Thread Adam Langley
On Thu, Sep 4, 2008 at 5:05 AM, Martin Geisler [EMAIL PROTECTED] wrote:
 Thanks for the vote of confidence. I think NaCl gets paged into my
 brain tomorrow. I'll see if I can get the shared library support
 done.

See the patch set at
http://imperialviolet.org/binary/nacl-20080714-agl-20080904.tar.bz2

That contains patches for several curve25519 implementations, shared
library building and the python bindings. To build the python bindings
(which are in bindings/python) first install the libnacl.so into
/usr/lib, the include files into /usr/include/nacl then:

% bash generate.sh
% python setup.py build

There may be ELF visibility issues with some of the code that I'm not
building here (like the curve25519/athlon code). If you don't find
libnacl.so in build/$(hostname)/lib/$abi-pic then email me your
build/$(hostname)/log.

Cheers


AGL

-- 
Adam Langley [EMAIL PROTECTED] http://www.imperialviolet.org
___
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk