jeroen / openssl

OpenSSL bindings for R
Other
65 stars 23 forks source link

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

Closed jasonelaw closed 1 year ago

jasonelaw commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

Thanks!

jasonelaw commented 1 year ago

You're welcome! Glad to help.