I needed some crypto stuff in my current project so I cobbled some C-libs together for ECC/ChaCha20 support (AFAIK, ChaCha20 makes up /dev/urandom and has been adopted by Google for TLS).
It might be useful for other lightweight implementations as well. I still need to port fortune (I did not find a NIM wrapper - some volunteers?). You find the crypto wrappers on my web site under [http://mjh-it.com/repo/nim/](http://mjh-it.com/repo/nim/). They are just extracted from my current project. If there is interest (and probably collaborators to expand?) I can put it on GitHub as a separate library. The wrappers compile and test ok on Linux64 with x-compiling for win32/64 and linux32. Jordan