Skip to content
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

Added support for OAEP padding to RSA encryption/decryption. #120

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

jasonelaw
Copy link
Contributor

I added support for OAEP padding which partially addresses #65. I added an oaep logical argument to rsa_encrypt and rsa_decrypt and made the necessary changes to the C code. I am by no means proficient in C... However, I tested the package, checked that rsa_encrypt and rsa_decrypt worked for a simple example using the OAEP option and used it successfully to pass credentials to an api I use that requires this option. Everything seems to work fine.

@jasonelaw
Copy link
Contributor Author

@jeroen, super gentle bump on this. More than happy to tweak it or close the PR if you don't think it's going to work.

@jeroen jeroen merged commit 5302c6f into jeroen:master Oct 5, 2023
@jeroen
Copy link
Owner

jeroen commented Oct 5, 2023

Thanks!

@jasonelaw
Copy link
Contributor Author

You're welcome! Glad to help.

@jasonelaw jasonelaw deleted the oaep branch October 5, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants