-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for RSA OAEP in openssl crate #1383
Comments
Sure, happy to take a PR! We can work through any safety issues there as necessary. |
Let's see if I can understand what should be done and in which way. I need to implement an encryption and a decryption abstraction layer. If I am not wrong, currently However, As I already said, I am pretty new in this particular field, so please correct my assumptions if I am totally wrong. If my understandings are correct, I am still unsure how the feature from
I mostly wrote about the encryption, the same things should apply to decryption as well. Please let me know what do you think, I think I need to better understand the situation and how it should be handled. |
I think adding Encrypter/Decrypter makes sense for now - in the next breaking release I'm planning on looking into a more low-level |
Josekit heavily relies on
openssl
crate, but directly implements RSA OAEP encryption/decryption usingopenssl-sys
and, obviously,unsafe
code.It should be considered to implement the same feature directly in
openssl
crate. If the code does not have any particular issue, it could be implemented without particular efforts and, at the same time, it will avoid others to re-implement the same feature with unsafe code. On the other hand, if there are some concerns about the soundness or security, people involved inrust-openssl
have surely a strong know-how to correctly implement the feature and expose a safe and sound abstraction for the ecosystem.If you want, I could try to send a PR for this, but I am a bit intimidated by crypto issues -- I never worked on this field!
The text was updated successfully, but these errors were encountered: