jeroen / openssl

OpenSSL bindings for R
Other
63 stars 19 forks source link

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

Closed jasonelaw closed 9 months ago

jasonelaw commented 10 months 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 9 months 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 9 months ago

Thanks!

jasonelaw commented 9 months ago

You're welcome! Glad to help.