rweather / arduinolibs

Arduino Cryptography Library
444 stars 212 forks source link

Have you considered supporting new NewHope Simple #25

Open onlykey opened 7 years ago

onlykey commented 7 years ago

See https://eprint.iacr.org/2016/1157.pdf

And example C implementation here - https://github.com/milagro-crypto/amcl/blob/master/version3/c/newhope.c

It seems the simple version has slightly larger key but the new implementation is simpler, same security, same performance.

We are looking for a C newhope implementation and a JS implementation to do key exchange between USB device and web app. Right now I am looking at using the referenced one because they already have a JS version. I really like your Newhope implementation because its good for small device like Arduino. Thanks for the great libraries.

rweather commented 7 years ago

The plan was to implement NewHope-Simple eventually and to replace ref/torref. Back when I was looking at it previously the authors hadn't made their reference implementation available yet so I had nothing to test against. Now that other people have started to implement newhope-simple I might be able to figure out how to do that in arduinolibs. I'll put it on the TODO list.