Proposing an mbedtls wrapper module for RSA encryption #17703
Unanswered
czcollier
asked this question in
Core Development
Replies: 1 comment
-
Could it be done as a dynamic native module? https://docs.micropython.org/en/latest/develop/natmod.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on a weather sensor project that uses rp2w devices to collect data and send it to a cloud hosted database. The server requires JWT authentication with RSA signed keys. The Python implementation of RSA I found here was too slow and was affecting data transfer timing, so I wrote a user module that's a tiny wrapper around mbedtls and exposes a general RSA signing function. The speedup is dramatic.
I thought it would be a good thing to contribute back to micropython as a core module. Other common cryptographic functions could be added. I'm aware of ucrypto but mbedtls is afaik is highly used and battle tested, and is included in micropython already.
My module code is here: https://github.com/czcollier/micropython-fastrsa/tree/main
Looking for some perspective on whether it's worth doing some cleanup, documentation and submitting a PR. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions