Hi!
@floitsch
I saw the recent release notes regarding the new RSA support—great to see
@exklibur 's work on signing and verification merged!
Since that baseline is now in place, I've been working on the "next steps" to make the RSA implementation more complete. I've implemented a few features that build directly on top of the new crypto.rsa library:
RSA Encryption/Decryption: Added support for both PKCS1 v1.5 and OAEP (with SHA256).
Key Generation: Added Key.generate (supporting 1024, 2048, 3072, and 4096 bits).
PEM Export: Added the ability to export public and private keys back to PEM format.
The implementation follows the same patterns as the recent RSA PR, and I've included an example in
examples/rsa_gen.toit
to show how it all fits together.
You can see the proposed changes here:
https://github.com/valientegaston/toit/tree/rsa-oaep-support
I think these would be a useful addition to the v2.0 cycle. Let me know if you'd like me to open a Pull Request!
Best,