-
• #2
I haven't done this, but it shouldn't be too hard to use. There is actually already a version in the Espruino repository because it's used for the Puck.js firmware updater: https://github.com/espruino/Espruino/tree/master/targetlibs/nrf5x/external
There's some really good info on writing your own modules here now as well: http://www.espruino.com/Extending+Espruino+1
What specific functionality did you want? There is the Crypto library available for some common things.
-
• #3
I wanted to use the ECDH in that lib to establish a shared key that could then be used with AES, and probably the ECDSA to sign a JWT token.
For now it is all moot as I'm using NUS and JSON for data during prototyping, and that means the full memory of the SW is available to anything that connects to that service, but just trying to think ahead a little on the security patterns.
Thanks for those other links - it actually looks like a relatively easy port.
-P
Has anyone tried wrapping
https://github.com/kmackay/micro-ecc
Into an Espruino library?
This Nordic page implies the Puck's processor should handle it:
http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Flib_crypto.html&anchor=lib_crypto_installing
It looks like this is the approach to wrapping it:
https://github.com/espruino/Espruino/blob/master/libs/README.md