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/. 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
Speaking of crypto wrappers, a fairly complete wrapper for libsodium is at https://nimble.directory/pkg/libsodium or https://github.com/federicoceratto/nim-libsodium
Peer reviewers with experience in cryptography are welcome!
Nice one
although it would have needed more work on that library to meet my requirements. At the moment I have the same service from the two implementations Ecc/ChaCha20 as I would have from sodium. I need it to
In particular I found the micro uECC on my Debian fully avoiding circumvention of gmp. Also, I want another random generator and Fortune (succeeding Yarrow) seems to be useful (Sodium is based on Salsa20 or /dev/urandom == ChaCha20 akaik).
So yes, I would support work on Sodium if I can combine this with my work on the lightweight stuff (have written forensic tools/protocol reverse engineering for the last decade - does not say much though).
Jordan